Replaced use of bare variables with full variable syntax (#4149)
This commit is contained in:
parent
6ac58a5832
commit
acb7d873f8
1 changed files with 2 additions and 2 deletions
|
@ -429,10 +429,10 @@ EXAMPLES = '''
|
||||||
register: ec2
|
register: ec2
|
||||||
- name: Add new instance to host group
|
- name: Add new instance to host group
|
||||||
add_host: hostname={{ item.public_ip }} groupname=launched
|
add_host: hostname={{ item.public_ip }} groupname=launched
|
||||||
with_items: ec2.instances
|
with_items: '{{ec2.instances}}'
|
||||||
- name: Wait for SSH to come up
|
- name: Wait for SSH to come up
|
||||||
wait_for: host={{ item.public_dns_name }} port=22 delay=60 timeout=320 state=started
|
wait_for: host={{ item.public_dns_name }} port=22 delay=60 timeout=320 state=started
|
||||||
with_items: ec2.instances
|
with_items: '{{ec2.instances}}'
|
||||||
|
|
||||||
- name: Configure instance(s)
|
- name: Configure instance(s)
|
||||||
hosts: launched
|
hosts: launched
|
||||||
|
|
Loading…
Reference in a new issue