From 90033ba69bad235b93ccfceaf4310d8df3eea782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Fri, 3 Apr 2015 12:14:54 +0000 Subject: [PATCH] delete the key from both files --- playbooks/groups/copr-backend-newcloud.yml | 5 ++++- playbooks/groups/copr-frontend-newcloud.yml | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/playbooks/groups/copr-backend-newcloud.yml b/playbooks/groups/copr-backend-newcloud.yml index 98a4f53945..56252dda3d 100644 --- a/playbooks/groups/copr-backend-newcloud.yml +++ b/playbooks/groups/copr-backend-newcloud.yml @@ -15,8 +15,11 @@ tasks: - include: "{{ tasks }}/persistent_cloud_new.yml" - name: clean out old known_hosts for copr-be-dev - local_action: known_hosts path=/root/.ssh/known_hosts host=copr-be-dev.cloud.fedoraproject.org state=absent + local_action: known_hosts path={{item}} host=copr-be-dev.cloud.fedoraproject.org state=absent ignore_errors: True + with_items: + - /root/.ssh/known_hosts + - /etc/ssh/ssh_known_hosts - include: "{{ tasks }}/growroot_cloud.yml" - name: cloud basic setup diff --git a/playbooks/groups/copr-frontend-newcloud.yml b/playbooks/groups/copr-frontend-newcloud.yml index 326a435bfd..fb3a39af37 100644 --- a/playbooks/groups/copr-frontend-newcloud.yml +++ b/playbooks/groups/copr-frontend-newcloud.yml @@ -16,6 +16,9 @@ - name: clean out old known_hosts for copr-fe-dev local_action: known_hosts path=/root/.ssh/known_hosts host=copr-fe-dev.cloud.fedoraproject.org state=absent ignore_errors: True + with_items: + - /root/.ssh/known_hosts + - /etc/ssh/ssh_known_hosts - include: "{{ tasks }}/growroot_cloud.yml"