Advertisement
Guest User

Untitled

a guest
Aug 26th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. - name: Wait for launched instances to be available
  2. wait_for:
  3. host: "{{ item.public_dns_name }}"
  4. port: 22
  5. state: started
  6. delay: 10
  7. timeout: 300
  8. with_items: "{{ ec2.instances }}"
  9.  
  10. - name: Wait for launched instances to show up in the inventory
  11. shell: "for i in {1..12}; do {{ inventory_file }} | grep -q {{ item.id }} && break; sleep 5; done"
  12. with_items: "{{ ec2.instances }}"
  13.  
  14. - name: Flush DNS cache
  15. command: unbound-control reload
  16. become: true
  17.  
  18. - meta: refresh_inventory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement