Handlers should reload systemd, if needed, before restarting services

This commit is contained in:
Mikolaj Izdebski 2019-02-21 18:58:08 +01:00
parent 7840c992cc
commit 89f2e67c8b
1 changed files with 3 additions and 3 deletions

View File

@ -2,6 +2,9 @@
# Handlers for restarting services
#
- name: reload systemd
command: systemctl daemon-reload
- name: restart apache
command: /usr/local/bin/conditional-restart.sh httpd httpd
@ -123,9 +126,6 @@
- name: restart memcached
service: name=memcached state=restarted
- name: reload systemd
command: systemctl daemon-reload
- name: restart nagios
shell: nagios -v /etc/nagios/nagios.cfg && systemctl restart nagios