summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Uiterwijk <puiterwijk@redhat.com>2017-08-15 18:13:34 +0000
committerPatrick Uiterwijk <puiterwijk@redhat.com>2017-08-15 18:13:41 +0000
commit208c557fc4ca489b0fc7d7a9aaab93f4e453fa45 (patch)
tree0c896ca781439a2ec7d73bc653f2915655141fbb
parent70866fd5326d8e118b23160f47b12cdcb047f61a (diff)
Do not clean or anything with known_hosts
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
-rw-r--r--tasks/virt_instance_create.yml16
1 files changed, 0 insertions, 16 deletions
diff --git a/tasks/virt_instance_create.yml b/tasks/virt_instance_create.yml
index 5e3e88656..6f70af7d9 100644
--- a/tasks/virt_instance_create.yml
+++ b/tasks/virt_instance_create.yml
@@ -76,14 +76,6 @@
tags:
- armv7-kernel
-- name: make sure there is no old ssh host key for the host still around
- local_action: known_hosts path={{item}} host={{ inventory_hostname }} state=absent
- ignore_errors: True
- with_items:
- - /root/.ssh/known_hosts
- - /etc/ssh/ssh_known_hosts
- when: inventory_hostname not in result.list_vms
-
- name: (osbs-control01.stg) make sure there is no old ssh host key for the host still around
known_hosts: path={{item}} host={{ inventory_hostname }} state=absent
ignore_errors: True
@@ -112,14 +104,6 @@
register: hostkey
when: inventory_hostname not in result.list_vms
-- name: add new ssh host key (you still need to add it to official ssh_host_keys later)
- local_action: known_hosts path={{item}} key="{{ hostkey.stdout }}" host={{ inventory_hostname }} state=present
- ignore_errors: True
- with_items:
- - /root/.ssh/known_hosts
- - /etc/ssh/ssh_known_hosts
- when: inventory_hostname not in result.list_vms
-
- name: (osbs-control01.stg) add new ssh host key
known_hosts: path={{item}} key="{{ hostkey.stdout }}" host={{ inventory_hostname }} state=present
ignore_errors: True