Extracting json object value in ansible - Stack Overflow
stackoverflow.com › questions › 39844374Oct 04, 2016 · If this json object was returned to you from a module, then you could use "register". There is an example using setup module: - hosts: myhost gather_facts: false # turn off automatic setup invocation for this example tasks: - name: my setup setup: register: myvar # register setup module json output to variable - name: getting inside json structure for a string debug: msg="{{ myvar.ansible ...