summaryrefslogtreecommitdiff
path: root/roles/vm-install
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2017-12-13 00:16:24 +0100
committerChristian Pointner <equinox@spreadspace.org>2017-12-13 00:16:24 +0100
commit66de6e08c414ada9111d8241a6ef5d844c3527bf (patch)
treee0eff089137c8071dd01c7cbeee96f54ebb728bb /roles/vm-install
parentlimit tftp server to vm bridge (diff)
added workaround for new key detection
Diffstat (limited to 'roles/vm-install')
-rw-r--r--roles/vm-install/tasks/main.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/vm-install/tasks/main.yaml b/roles/vm-install/tasks/main.yaml
index 4e5167d2..a59e6fe2 100644
--- a/roles/vm-install/tasks/main.yaml
+++ b/roles/vm-install/tasks/main.yaml
@@ -109,11 +109,19 @@
delegate_to: "{{ vm_install.host }}"
when: vm_install.autostart is defined
+- name: disable ssh StrictHostKeyChecking for the next step
+ set_fact:
+ ansible_ssh_extra_args: -o StrictHostKeyChecking=no
+
- name: wait for vm to start up
wait_for_connection:
delay: 5
timeout: 120
+- name: reenable StrictHostKeyChecking
+ set_fact:
+ ansible_ssh_extra_args: ""
+
- name: remove dummy logical volume
lvol:
vg: "{{ inventory_hostname }}"