Hello All,
I am trying to parse JSON output and use it as a variable in a playbook. Whilst the JSON query works perfectly fine if I run it on the bash command line, but for some reason, Ansible is not parsing the JSON output as expected. The play book and play recap are available at the below URL.
---- hosts: ora-pp user: ansible become: yes become_method: sudo c - Pastebin.com – playbook
ansible-playbook check_updates.yml [WARNING]: Invalid characters were found in - Pastebin.com – play recap
In the play recap, the debug output returns a null value. msg = " "
However, in the below screenshot from https://jsonpath.com/ which I used to test the JSON query. I am not sure if I am missing something in the playbook. I reviewed the ansible documentation but I couldn’t find any pointers. Could you please help me to achieve the expected result?
Regards,
Darshan