mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
[dopr] cleanup old ip from known_hosts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user