Hi all
I'm using Ansible playbooks to run tests on EC2.
Most of my variables are define at group_vars/all, but I do override some 
of them using -e CLI option.
To make the test reproducible, I want to dump all the vars into a local 
file.
What is the idiomatic way to do so?

One solution I explored was using hostvars, which do hold all the relevant 
information, but also all kind of extra info I do not need like localhost 
info.
Is it the right path?
How can I filter only the top level, non nested vars from it?

followup question:
How to dump the vars in a format I can later easily include to reproduce 
the test?

Thanks!








-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/138a3fc7-b468-4f01-9e55-2d18415be41f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to