Given a playbook
--- - hosts: some_host_group roles: - foo - bar I'd like to get the list of all variables that the playbook needs to be defined. Something like:
# playbook-requires myplaybook.yml For more elaborate (or just numerous) playbooks this might come handy. Before starting to write such utility, I'd like to make sure I'm not re-inventing the wheel.
A quick googling shows a lot of solutions for the opposite task (listing all defined variables). That's not what I'm looking for.
So, is anyone aware of such utility being available?
{{ myvar2 if myvar1 is defined else myvar3 }}. What vars are required in this case?