Skip to content

Commit

Permalink
Update ec2.yml
Browse files Browse the repository at this point in the history
updated syntax
  • Loading branch information
wardviaene authored Jun 24, 2017
1 parent e81116c commit 50c3ed2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
register: ec2
- name: Add new instance to host group
add_host: hostname={{ item.public_ip }} groupname={{ groupname }}
with_items: ec2.instances
with_items: "{{ ec2.instances }}"
- name: Wait for SSH to come up
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 new instance
hosts: webservers
sudo: yes
Expand Down

0 comments on commit 50c3ed2

Please sign in to comment.