mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-02-02 20:59:02 +08:00
Handlers should reload systemd, if needed, before restarting services
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user