Set-OPS-Public/roles/serveur_icingaweb2/handlers/main.yml

15 lines
492 B
YAML
Raw Normal View History

---
- name: Redémarrer php-fpm
ansible.builtin.systemd:
name: "{{ serveur_icingaweb2_php_fpm_service }}"
state: restarted
when: not ansible_check_mode
# restart (pas reload) : un changement d'adresse d'écoute (ex. 0.0.0.0 -> 127.0.0.1)
# n'est pas pris par un reload gracieux (il conserve les sockets d'écoute existants).
- name: Recharger nginx
ansible.builtin.systemd:
name: "{{ serveur_icingaweb2_nginx_service }}"
state: restarted
when: not ansible_check_mode