ansible-roles/lxc-php/handlers/main.yml
Jérémy Lecour ee21973371 Use FQCN
Fully Qualified Collection Name
2023-03-20 23:33:19 +01:00

58 lines
1.6 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 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