Skip to content

Commit

Permalink
Update spinawsec2.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankam Ravi Kumar authored Jan 3, 2019
1 parent 8e3dbfb commit 46bfef1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions spinawsec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@
count={{count}}
register: ec2

- name: Include Newly Created EC2 Instance into ansible inventory file
local_action: lineinfile
dest="./inventory"
regexp={{ item.public_ip }}
insertafter="[webserver]" line={{ item.public_ip }}
with_items: "{{ ec2.instances }}"


- name: Wait for EC2 Instance to Spin-up and ready for SSH access
local_action: wait_for
host={{ item.public_ip }}
Expand Down

0 comments on commit 46bfef1

Please sign in to comment.