You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-roles/lxc-php/handlers/main.yml

58 lines
1.4 KiB

---
- name: Reload PHP-FPM
lxc_container:
name: "{{ lxc_php_version }}"
container_command: "systemctl reload {{ lxc_php_services[lxc_php_version] }}"
- name: Restart PHP-FPM
lxc_container:
name: "{{ lxc_php_version }}"
container_command: "systemctl restart {{ lxc_php_services[lxc_php_version] }}"
- name: Reload php81-fpm
lxc_container:
name: "{{ lxc_php_version }}"
container_command: "systemctl reload php8.1-fpm"
- name: Reload php80-fpm
lxc_container:
name: "{{ lxc_php_version }}"
container_command: "systemctl reload php8.0-fpm"
- name: Reload php74-fpm
lxc_container:
name: "{{ lxc_php_version }}"
container_command: "systemctl reload php7.4-fpm"
- name: Reload php73-fpm
lxc_container:
name: "{{ lxc_php_version }}"
container_command: "systemctl reload php7.3-fpm"
- name: Reload php70-fpm
lxc_container:
name: "{{ lxc_php_version }}"
container_command: "systemctl reload php7.0-fpm"
- name: Reload php56-fpm
lxc_container:
name: "{{ lxc_php_version }}"
container_command: "systemctl reload php5-fpm"
- name: Restart opensmtpd
lxc_container:
name: "{{ lxc_php_version }}"
container_command: "systemctl restart opensmtpd"
- name: Daemon reload
lxc_container:
name: "{{ lxc_php_version }}"
container_command: "systemctl daemon-reload"
- name: Restart container
lxc_container:
name: "{{ lxc_php_version }}"
state: restarted