mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Merge pull request #224 from jkleint/devel
Support YAML list of hosts in playbook.
This commit is contained in:
@@ -544,6 +544,8 @@ class PlayBook(object):
|
|||||||
|
|
||||||
# get configuration information about the pattern
|
# get configuration information about the pattern
|
||||||
pattern = pg.get('hosts',None)
|
pattern = pg.get('hosts',None)
|
||||||
|
if isinstance(pattern, list):
|
||||||
|
pattern = ';'.join(pattern)
|
||||||
if self.override_hosts:
|
if self.override_hosts:
|
||||||
pattern = 'all'
|
pattern = 'all'
|
||||||
if pattern is None:
|
if pattern is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user