summaryrefslogtreecommitdiff
path: root/common/cloud-install.yml
diff options
context:
space:
mode:
Diffstat (limited to 'common/cloud-install.yml')
-rw-r--r--common/cloud-install.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/cloud-install.yml b/common/cloud-install.yml
index 414cabd1..875d2880 100644
--- a/common/cloud-install.yml
+++ b/common/cloud-install.yml
@@ -5,6 +5,7 @@
roles:
- role: cloud/install
+
- name: wait for newly installed machine to start up
hosts: "{{ install_hostname }}"
gather_facts: no
@@ -13,14 +14,20 @@
- name: disable ssh StrictHostKeyChecking for the next step
set_fact:
ansible_ssh_extra_args: -o StrictHostKeyChecking=no
+
+ - name: clear all gathered facts
+ meta: clear_facts
+
- name: wait for newly installed machine to start up
wait_for_connection:
delay: 5
timeout: 120
+
- name: reenable StrictHostKeyChecking
set_fact:
ansible_ssh_extra_args: ""
+
- name: run post install roles
hosts: "{{ install_hostname }}"
pre_tasks:
@@ -29,6 +36,7 @@
roles:
- role: cloud/post-install
+
- name: reboot and wait for machine come back
hosts: "{{ install_hostname }}"
gather_facts: no