Add monit monitoring
This commit is contained in:
parent
a8e8382eca
commit
04be772437
4 changed files with 31 additions and 5 deletions
|
@ -1,19 +1,24 @@
|
|||
---
|
||||
- name: reload apache2
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: apache2
|
||||
state: reloaded
|
||||
|
||||
- name: reload php-fpm
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: "php{{ php_version.stdout }}-fpm"
|
||||
state: reloaded
|
||||
|
||||
- name: stop php-fpm-socket
|
||||
command: systemctl stop php-fpm@*.socket
|
||||
ansible.builtin.command: systemctl stop php-fpm@*.socket
|
||||
|
||||
- name: stop php-fpm-service
|
||||
command: systemctl stop php-fpm@*.service
|
||||
ansible.builtin.command: systemctl stop php-fpm@*.service
|
||||
|
||||
- name: start php-fpm-socket
|
||||
command: systemctl start php-fpm@*.socket --all
|
||||
ansible.builtin.command: systemctl start php-fpm@*.socket --all
|
||||
|
||||
- name: reload monit
|
||||
ansible.builtin.service:
|
||||
name: monit
|
||||
state: reloaded
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue