ansible-role-php/handlers/main.yml

25 lines
566 B
YAML
Raw Normal View History

2021-06-12 19:39:41 +02:00
---
- name: reload apache2
2023-06-10 18:30:09 +02:00
ansible.builtin.service:
2021-06-12 19:39:41 +02:00
name: apache2
state: reloaded
- name: reload php-fpm
2023-06-10 18:30:09 +02:00
ansible.builtin.service:
name: "php{{ php_version.stdout }}-fpm"
state: reloaded
- name: stop php-fpm-socket
2023-06-10 18:30:09 +02:00
ansible.builtin.command: systemctl stop php-fpm@*.socket
- name: stop php-fpm-service
2023-06-10 18:30:09 +02:00
ansible.builtin.command: systemctl stop php-fpm@*.service
- name: start php-fpm-socket
2023-06-10 18:30:09 +02:00
ansible.builtin.command: systemctl start php-fpm@*.socket --all
- name: reload monit
ansible.builtin.service:
name: monit
state: reloaded