mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
rename 'pattern' to 'hosts' in playbook format.
This commit is contained in:
@@ -241,12 +241,12 @@ class PlayBook(object):
|
||||
'''
|
||||
|
||||
# get configuration information about the pattern
|
||||
pattern = pg['pattern']
|
||||
pattern = pg['hosts']
|
||||
tasks = pg['tasks']
|
||||
handlers = pg['handlers']
|
||||
user = pg.get('user', C.DEFAULT_REMOTE_USER)
|
||||
|
||||
host_file = pg.get('hosts', '/etc/ansible/hosts')
|
||||
host_file = pg.get('inventory', '/etc/ansible/hosts')
|
||||
self.host_list, groups = ansible.runner.Runner.parse_hosts(host_file)
|
||||
|
||||
if self.verbose:
|
||||
|
||||
Reference in New Issue
Block a user