Move known_hosts scrubbing to a more reasonable place.
This commit is contained in:
parent
808dcd107a
commit
fbd38e1889
2 changed files with 8 additions and 6 deletions
|
@ -12,12 +12,6 @@
|
|||
|
||||
tasks:
|
||||
- include: "{{ tasks }}/persistent_cloud_new.yml"
|
||||
- name: clean out old known_hosts for copr-be-dev
|
||||
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: setup all the things
|
||||
|
|
|
@ -5,6 +5,14 @@
|
|||
register: host_is_up
|
||||
ignore_errors: true
|
||||
|
||||
- name: clean out old known_hosts
|
||||
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: host_is_up|failed
|
||||
|
||||
- name: spin UP VM using nova_compute
|
||||
sudo: False
|
||||
local_action:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue