Commit 0e5c49a0 by John Jarvis

making cloud-init check a pre_task

parent 9527524c
...@@ -20,6 +20,12 @@ ...@@ -20,6 +20,12 @@
hosts: launched hosts: launched
sudo: True sudo: True
gather_facts: False 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: roles:
# rerun common to set the hostname # rerun common to set the hostname
- common - common
......
...@@ -91,9 +91,4 @@ ...@@ -91,9 +91,4 @@
timeout=320 timeout=320
with_items: "{{ ec2.instances }}" 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