[dopr] clean known_hosts
This commit is contained in:
parent
6646bd3341
commit
6457b76675
1 changed files with 15 additions and 1 deletions
|
@ -1,3 +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_kno
|
||||||
|
|
||||||
- name: provision dopr dev instance
|
- name: provision dopr dev instance
|
||||||
hosts: dopr-stg
|
hosts: dopr-stg
|
||||||
remote_user: fedora
|
remote_user: fedora
|
||||||
|
@ -9,10 +23,10 @@
|
||||||
- "/srv/private/ansible/vars.yml"
|
- "/srv/private/ansible/vars.yml"
|
||||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
- dopr
|
- dopr
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- include: "{{ handlers }}/restart_services.yml"
|
- include: "{{ handlers }}/restart_services.yml"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue