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

This commit is contained in:
Michael DeHaan 2012-03-01 22:20:45 -05:00
parent 687a315a80
commit 5040c01640
3 changed files with 4 additions and 6 deletions

View file

@ -1,6 +1,5 @@
---
- pattern: '*'
hosts: '/etc/ansible/hosts'
- hosts: '*'
tasks:
- name: configure template & module variables for future template calls
action: setup http_port=80 max_clients=200

View file

@ -1,6 +1,5 @@
---
- pattern: '*'
hosts: /etc/ansible/hosts
- hosts: '*'
tasks:
- name: config step
action: setup a=2 b=3 c=4

View file

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