Ansible-Roles/roles/php-fpm/handlers/main.yml
2026-05-08 22:25:29 +03:00

17 lines
393 B
YAML

---
- name: Restart webserver
ansible.builtin.service:
name: "{{ php_webserver_daemon }}"
state: restarted
notify: Restart php-fpm
when: php_enable_webserver
- name: Restart php-fpm
ansible.builtin.service:
name: "{{ php_fpm_daemon }}"
state: "{{ php_fpm_handler_state }}"
when:
- php_enable_php_fpm
- php_fpm_state == 'started'
- not ansible_check_mode