ansible_play_batch (#17779)

* ansible_play_batch

* added version added
This commit is contained in:
Brian Coca
2016-09-28 10:32:19 -04:00
committed by GitHub
parent 8cdf002f2a
commit 86ea21a73d
3 changed files with 10 additions and 1 deletions

View File

@@ -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