ansible-role-php/handlers/main.yml

16 lines
332 B
YAML
Raw Permalink Normal View History

2014-05-03 05:27:38 +02:00
---
- name: restart webserver
2014-09-21 06:15:45 +02:00
service:
name: "{{ php_webserver_daemon }}"
state: restarted
notify: restart php-fpm
when: php_enable_webserver
2014-05-19 19:51:46 +02:00
- name: restart php-fpm
2014-09-21 06:15:45 +02:00
service:
name: "{{ php_fpm_daemon }}"
state: "{{ php_fpm_handler_state }}"
when:
- php_enable_php_fpm
- php_fpm_state == 'started'