Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: Wait for launched instances to be available
- wait_for:
- host: "{{ item.public_dns_name }}"
- port: 22
- state: started
- delay: 10
- timeout: 300
- with_items: "{{ ec2.instances }}"
- - name: Wait for launched instances to show up in the inventory
- shell: "for i in {1..12}; do {{ inventory_file }} | grep -q {{ item.id }} && break; sleep 5; done"
- with_items: "{{ ec2.instances }}"
- - name: Flush DNS cache
- command: unbound-control reload
- become: true
- - meta: refresh_inventory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement