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
|
2022-01-22 18:43:11 +01:00
|
|
|
state: reloaded
|
|
|
|
|
|
|
|
- name: reload php-fpm
|
2023-06-10 18:30:09 +02:00
|
|
|
ansible.builtin.service:
|
2022-01-22 18:43:11 +01:00
|
|
|
name: "php{{ php_version.stdout }}-fpm"
|
|
|
|
state: reloaded
|
2022-08-18 08:40:39 +02:00
|
|
|
|
|
|
|
- name: stop php-fpm-socket
|
2023-06-10 18:30:09 +02:00
|
|
|
ansible.builtin.command: systemctl stop php-fpm@*.socket
|
2022-08-18 08:40:39 +02:00
|
|
|
|
|
|
|
- name: stop php-fpm-service
|
2023-06-10 18:30:09 +02:00
|
|
|
ansible.builtin.command: systemctl stop php-fpm@*.service
|
2022-08-18 08:40:39 +02:00
|
|
|
|
|
|
|
- name: start php-fpm-socket
|
2023-06-10 18:30:09 +02:00
|
|
|
ansible.builtin.command: systemctl start php-fpm@*.socket --all
|
|
|
|
|
2023-11-01 08:23:15 +01:00
|
|
|
- name: Reload systemd
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
daemon_reload: true
|
2023-11-15 12:32:00 +01:00
|
|
|
|
|
|
|
- name: Start phpfpm_exporter
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
name: phpfpm_exporter
|
|
|
|
daemon_reload: true
|
|
|
|
state: started
|
|
|
|
enabled: true
|