Commit 2e7d9d81 by John Jarvis

adding to host group

Please enter the commit message for your changes. Lines starting
parent d3a406a7
......@@ -12,7 +12,11 @@
region: "{{region}}"
instance_tags: "{{instance_tags}}"
register: ec2
- name: Add new instance to host group
local_action: add_host hostname=${item.public_ip} groupname=launched
with_items: ${ec2.instances}
- name: Wait for SSH to come up
local_action: wait_for host=${item.public_dns_name} port=22 delay=60 timeout=320 state=started
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