Add in playbook_dir magic variable
This commit is contained in:
parent
4c6adcf143
commit
0b16580567
1 changed files with 2 additions and 0 deletions
|
@ -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()]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue