ansible-role-php/handlers/main.yml
R.Sicart 7506c18750 Added possibility to choose if php-fpm is restarted or reloaded.
In production systems, it is sometimes better to reload FPM instead of
restarting. This commit allows users to manage restart or reload of
php-fpm service, but keeps restarting by default.

Co-authored-by: Julien LE SAUX <julien.le.saux@fr.clara.net>
2020-06-16 18:34:21 +02:00

16 lines
332 B
YAML

---
- name: restart webserver
service:
name: "{{ php_webserver_daemon }}"
state: restarted
notify: restart php-fpm
when: php_enable_webserver
- name: restart php-fpm
service:
name: "{{ php_fpm_daemon }}"
state: "{{ php_fpm_handler_state }}"
when:
- php_enable_php_fpm
- php_fpm_state == 'started'