Commit 5040c016 by Michael DeHaan

rename 'pattern' to 'hosts' in playbook format.

parent 687a315a
---
- pattern: '*'
hosts: '/etc/ansible/hosts'
- hosts: '*'
tasks:
- name: configure template & module variables for future template calls
action: setup http_port=80 max_clients=200
......
---
- pattern: '*'
hosts: /etc/ansible/hosts
- hosts: '*'
tasks:
- name: config step
action: setup a=2 b=3 c=4
......
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment