ansible-role-php/handlers/main.yml

19 lines
401 B
YAML

---
- name: reload apache2
service:
name: apache2
state: reloaded
- name: reload php-fpm
service:
name: "php{{ php_version.stdout }}-fpm"
state: reloaded
- name: stop php-fpm-socket
command: systemctl stop php-fpm@*.socket
- name: stop php-fpm-service
command: systemctl stop php-fpm@*.service
- name: start php-fpm-socket
command: systemctl start php-fpm@*.socket --all