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.yml13
1 files changed, 10 insertions, 3 deletions
diff --git a/common/cloud-install.yml b/common/cloud-install.yml
index fbe0dd4f..38523bb0 100644
--- a/common/cloud-install.yml
+++ b/common/cloud-install.yml
@@ -26,15 +26,22 @@
roles:
- role: cloud/post-install
- - role: reboot-and-wait
- reboot_delay: 10
- reboot_timeout: 120
post_tasks:
- name: reenable StrictHostKeyChecking
set_fact:
ansible_ssh_extra_args: ""
+ - name: run all handlers before rebooting
+ meta: flush_handlers
+
+ - name: reboot the new machine
+ vars:
+ reboot_delay: 10
+ reboot_timeout: 120
+ import_role:
+ name: reboot-and-wait
+
- name: run host playbook
vars: