Commit b59291bd by Feanil Patel

Update syntax to match the new format.

The old syntax was:
 - causing the module name lookup to fail probably because it was having trouble dealing with the white space.
 - using an older name for a module argument
parent 7aa163dd
...@@ -91,18 +91,18 @@ ...@@ -91,18 +91,18 @@
- name: Add new instance to host group - name: Add new instance to host group
local_action: > local_action:
add_host module: add_host
hostname={{ item.public_ip }} hostname: "{{ item.public_ip }}"
groupname=launched groups: launched
with_items: ec2.instances with_items: ec2.instances
- name: Wait for SSH to come up - name: Wait for SSH to come up
local_action: > local_action:
wait_for module: wait_for
host={{ item.public_dns_name }} host: "{{ item.public_dns_name }}"
state=started state: started
port=22 port: 22
delay=60 delay: 60
timeout=320 timeout: 320
with_items: ec2.instances with_items: ec2.instances
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