Commit 0e5c49a0 by John Jarvis

making cloud-init check a pre_task

parent 9527524c
......@@ -20,6 +20,12 @@
hosts: launched
sudo: True
gather_facts: False
pre_tasks:
- name: Wait for cloud-init to finish
wait_for: >
path=/var/log/cloud-init.log
timeout=15
search_string=final-message
roles:
# rerun common to set the hostname
- common
......
......@@ -91,9 +91,4 @@
timeout=320
with_items: "{{ ec2.instances }}"
- name: launch_ec2 | Wait for cloud-init to finish
wait_for: >
path=/var/log/cloud-init.log
timeout=15
search_string=final-message
delegate_to: "{{ item.public_dns_name }}"
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