mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Adding the inventory_file var back
This commit is contained in:
parent
6292520c45
commit
1f82971283
1 changed files with 1 additions and 0 deletions
|
@ -356,6 +356,7 @@ class VariableManager:
|
||||||
|
|
||||||
if self._inventory is not None:
|
if self._inventory is not None:
|
||||||
variables['inventory_dir'] = self._inventory.basedir()
|
variables['inventory_dir'] = self._inventory.basedir()
|
||||||
|
variables['inventory_file'] = self._inventory.src()
|
||||||
if play:
|
if play:
|
||||||
# add the list of hosts in the play, as adjusted for limit/filters
|
# add the list of hosts in the play, as adjusted for limit/filters
|
||||||
# DEPRECATED: play_hosts should be deprecated in favor of ansible_play_hosts,
|
# DEPRECATED: play_hosts should be deprecated in favor of ansible_play_hosts,
|
||||||
|
|
Loading…
Reference in a new issue