[dopr] cleanup old ip from known_hosts
This commit is contained in:
parent
3102fddd17
commit
b594af8905
1 changed files with 14 additions and 13 deletions
|
@ -1,16 +1,17 @@
|
|||
#- name: clean known hosts
|
||||
# hosts: dopr-stg
|
||||
# remote_user: fedora
|
||||
# sudo: True
|
||||
# gather_facts: False
|
||||
#
|
||||
# tasks:
|
||||
# - name: clean out old known_hosts for dopr-dev
|
||||
# local_action: known_hosts path={{item}} host=dopr-dev.cloud.fedoraproject.org state=absent
|
||||
# ignore_errors: True
|
||||
# with_items:
|
||||
# - /root/.ssh/known_hosts
|
||||
# - /etc/ssh/ssh_known_hosts
|
||||
- name: clean known hosts
|
||||
hosts: dopr-stg
|
||||
remote_user: fedora
|
||||
sudo: True
|
||||
gather_facts: False
|
||||
|
||||
tasks:
|
||||
- name: clean out old known_hosts for dopr-dev
|
||||
# local_action: known_hosts path={{item}} host=dopr-dev.cloud.fedoraproject.org state=absent
|
||||
local_action: known_hosts path={{item}} host=209.132.184.42 state=absent
|
||||
ignore_errors: True
|
||||
with_items:
|
||||
- /root/.ssh/known_hosts
|
||||
- /etc/ssh/ssh_known_hosts
|
||||
|
||||
- name: provision dopr dev instance
|
||||
hosts: dopr-stg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue