1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Add in playbook_dir magic variable

This commit is contained in:
James Cammarata 2015-06-23 14:29:39 -04:00
parent 4c6adcf143
commit 0b16580567

View file

@ -213,6 +213,8 @@ class VariableManager:
# FIXME: make sure all special vars are here
# Finally, we create special vars
all_vars['playbook_dir'] = loader.get_basedir()
if host:
all_vars['groups'] = [group.name for group in host.get_groups()]