From 1f82971283922daa73ffdf5fd2a6c2a769424de6 Mon Sep 17 00:00:00 2001 From: Ben Keith Date: Sat, 10 Oct 2015 21:54:28 -0400 Subject: [PATCH] Adding the inventory_file var back --- lib/ansible/vars/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/vars/__init__.py b/lib/ansible/vars/__init__.py index 0988ed8036..7dc01283b3 100644 --- a/lib/ansible/vars/__init__.py +++ b/lib/ansible/vars/__init__.py @@ -356,6 +356,7 @@ class VariableManager: if self._inventory is not None: variables['inventory_dir'] = self._inventory.basedir() + variables['inventory_file'] = self._inventory.src() if play: # 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,