delete the key from both files

This commit is contained in:
Miroslav Suchý 2015-04-03 12:14:54 +00:00
parent bec235e4cb
commit 90033ba69b
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -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"