ansible-roles/lxc-php/handlers/main.yml

63 lines
1.8 KiB
YAML

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