Commit 0b165805 by James Cammarata

Add in playbook_dir magic variable

parent 4c6adcf1
...@@ -213,6 +213,8 @@ class VariableManager: ...@@ -213,6 +213,8 @@ class VariableManager:
# FIXME: make sure all special vars are here # FIXME: make sure all special vars are here
# Finally, we create special vars # Finally, we create special vars
all_vars['playbook_dir'] = loader.get_basedir()
if host: if host:
all_vars['groups'] = [group.name for group in host.get_groups()] all_vars['groups'] = [group.name for group in host.get_groups()]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment