Validate variables all at once

13 views
Skip to first unread message

Adam Shantz

unread,
Mar 14, 2017, 7:59:43 PM3/14/17
to Ansible Project
Has anyone ever written a script/playbook that will validate all of the variables in a template are defined in the vars.yml file without having to fail each time a missing one is found?  I'd like to figure out a way to know that my template variables are all defined in my dictionary of variables in a single execution.  In other words, "give me a list of variables in my template that aren't found in my dictionary."

Thanks in advance!

Adam
Reply all
Reply to author
Forward
0 new messages