commit 5e1c4d6601b1063a3ddb5a61a4812ff9c387f201
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Mon Feb 5 19:24:01 2018 +0100
Update handlers
handlers/restart_services.yml | 22 ++++++++++++++++++++--
roles/base/handlers/main.yml | 7 ++++---
2 files changed, 24 insertions(+), 5 deletions(-)
---
diff --git a/handlers/restart_services.yml b/handlers/restart_services.yml
index 85f1193..89740cb 100644
--- a/handlers/restart_services.yml
+++ b/handlers/restart_services.yml
@@ -26,6 +26,9 @@
- name: restart fedmsg-relay
command: /usr/local/bin/conditional-restart.sh fedmsg-relay fedmsg-relay
+- name: restart koji-sync-listener
+ action: service name=koji-sync-listener state=restarted
+
- name: reload httpd
command: /usr/local/bin/conditional-reload.sh httpd httpd
@@ -52,7 +55,7 @@
- name: restart openvpn (Fedora)
when: ansible_distribution == "Fedora"
- action: service name=openvpn@openvpn state=restarted
+ action: service name=openvpn-client@openvpn state=restarted
#notify:
#- fix openvpn routing
@@ -64,7 +67,7 @@
- name: restart openvpn (RHEL7)
when: ansible_distribution == "RedHat" and
ansible_distribution_major_version|int == 7
- action: service name=openvpn@openvpn state=restarted
+ action: service name=openvpn-client@openvpn state=restarted
#notify:
#- fix openvpn routing
@@ -89,6 +92,9 @@
- name: restart postfix
service: name=postfix state=restarted
+- name: reload proxyhttpd
+ command: /usr/local/bin/proxy-conditional-reload.sh httpd httpd
+
- name: restart glusterd
service: name=glusterd state=restarted
@@ -124,6 +130,9 @@
ignore_errors: true
when: ansible_virtualization_role == 'host'
+- name: restart pagure_ev
+ service: name=pagure_ev state=restarted
+
- name: "update ca-trust"
command: /usr/bin/update-ca-trust
@@ -163,3 +172,12 @@
- name: flush journald tmpfiles to persistent store
command: pkill -f -USR1 systemd-journald
+
+- name: restart idmapd
+ service: name=nfs-idmapd state=restarted
+
+- name: restart darkserver
+ service: name=darkserver state=restarted
+
+- name: restart buildmaster
+ service: name=buildmaster state=restarted
diff --git a/roles/base/handlers/main.yml b/roles/base/handlers/main.yml
index 5852fa8..0140247 100644
--- a/roles/base/handlers/main.yml
+++ b/roles/base/handlers/main.yml
@@ -9,6 +9,10 @@
- name: restart iptables
service: name=iptables state=restarted
+- name: restart docker
+ command: systemctl try-restart docker
+ ignore_errors: true
+
- name: restart ip6tables
service: name=ip6tables state=restarted
@@ -24,9 +28,6 @@
- name: restart rsyslog
service: name=rsyslog state=restarted
-- name: restart sshd
- service: name=sshd state=restarted
-
- name: restart watchdog
service: name=watchdog state=restarted