summaryrefslogtreecommitdiff
path: root/lib/ansible/vars
diff options
context:
space:
mode:
authorBrian Coca <bcoca@users.noreply.github.com>2016-09-28 10:32:19 -0400
committerGitHub <noreply@github.com>2016-09-28 10:32:19 -0400
commit86ea21a73d0956c0ceac7c81a01d58892f8575a1 (patch)
tree9da561871bfcfc01621189f87e076bc5a3ee8bbc /lib/ansible/vars
parent8cdf002f2abd92f6803cd5234aeb484cfc419541 (diff)
downloadansible-86ea21a73d0956c0ceac7c81a01d58892f8575a1.tar.gz
ansible_play_batch (#17779)
* ansible_play_batch * added version added
Diffstat (limited to 'lib/ansible/vars')
-rw-r--r--lib/ansible/vars/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ansible/vars/__init__.py b/lib/ansible/vars/__init__.py
index 1765037218..b50fb22712 100644
--- a/lib/ansible/vars/__init__.py
+++ b/lib/ansible/vars/__init__.py
@@ -414,6 +414,7 @@ class VariableManager:
# however this would take work in the templating engine, so for now
# we'll add both so we can give users something transitional to use
variables['play_hosts'] = [x.name for x in self._inventory.get_hosts()]
+ variables['ansible_play_batch'] = [x.name for x in self._inventory.get_hosts()]
variables['ansible_play_hosts'] = [x.name for x in self._inventory.get_hosts(pattern=play.hosts or 'all', ignore_restrictions=True)]
# the 'omit' value alows params to be left out if the variable they are based on is undefined