[dopr] add handlers
This commit is contained in:
parent
12bda40c3d
commit
34c9acca16
2 changed files with 24 additions and 19 deletions
|
@ -1,22 +1,22 @@
|
||||||
- name: clean known hosts
|
#- name: clean known hosts
|
||||||
hosts: dopr-stg
|
# hosts: dopr-stg
|
||||||
remote_user: fedora
|
# remote_user: fedora
|
||||||
sudo: True
|
# sudo: True
|
||||||
gather_facts: False
|
# gather_facts: False
|
||||||
|
#
|
||||||
tasks:
|
# tasks:
|
||||||
- name: clean out old known_hosts for dopr-dev
|
# - 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=dopr-dev.cloud.fedoraproject.org state=absent
|
||||||
ignore_errors: True
|
# ignore_errors: True
|
||||||
with_items:
|
# with_items:
|
||||||
- /root/.ssh/known_hosts
|
# - /root/.ssh/known_hosts
|
||||||
- /etc/ssh/ssh_known_hosts
|
# - /etc/ssh/ssh_known_hosts
|
||||||
- name: clean out old known_hosts for dopr-dev ip
|
# - name: clean out old known_hosts for dopr-dev ip
|
||||||
local_action: known_hosts path={{item}} host=209.132.184.42 state=absent
|
# local_action: known_hosts path={{item}} host=209.132.184.42 state=absent
|
||||||
ignore_errors: True
|
# ignore_errors: True
|
||||||
with_items:
|
# with_items:
|
||||||
- /root/.ssh/known_hosts
|
# - /root/.ssh/known_hosts
|
||||||
- /etc/ssh/ssh_known_hosts
|
# - /etc/ssh/ssh_known_hosts
|
||||||
|
|
||||||
- name: provision dopr dev instance
|
- name: provision dopr dev instance
|
||||||
hosts: dopr-stg
|
hosts: dopr-stg
|
||||||
|
|
5
roles/dopr/files/handlers/main.yml
Normal file
5
roles/dopr/files/handlers/main.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
- include: "{{ handlers }}/restart_services.yml"
|
||||||
|
|
||||||
|
- name: restart postgresql
|
||||||
|
service: name=postgresql state=restarted
|
Loading…
Add table
Add a link
Reference in a new issue