I'm trying to grab some information from the output of a playbook and save in a file for review. tor.j2
is just a list of expected lines in the config: logging , ntp, spanning-tree, etc.
tasks:
- name: Check the config
nxos_config:
src: ./tor.j2
defaults: true
check_mode: yes
After running the code with a -vvv
verbosity the last item in there is the differences: "updates". Is there any way to grab this information so I can then save it in order to review?
Output (shortened for brevity):
changed: [switch1] => {
"ansible_facts":
"discovered_interpreter_python": "/usr/bin/python"
…
"updates": [
"feature ntp"
] }
Thanks for any guidance.