remove check-mode protection for handlers

handlers are not supposed to be executed in check-mode since no change should happen in check-mode.
If there is a corner case we should deal with it at the source, not at the handler level.
This commit is contained in:
Jérémy Lecour 2024-02-06 08:39:38 +01:00 committed by Jérémy Lecour
parent 8dd9c64cbc
commit ff233b65a6
Signed by: jlecour
SSH key fingerprint: SHA256:h+5LgHRKwN9lS0SsdVR5yZPeFlJE4Mt+8UtL4CcP8dY
2 changed files with 0 additions and 4 deletions

View file

@ -4,4 +4,3 @@
ansible.builtin.systemd:
name: filebeat
state: restarted
when: not ansible_check_mode

View file

@ -3,16 +3,13 @@
ansible.builtin.service:
name: nginx
state: restarted
when: not ansible_check_mode
- name: reload nginx
ansible.builtin.service:
name: nginx
state: reloaded
when: not ansible_check_mode
- name: restart munin
ansible.builtin.service:
name: munin-node
state: restarted
when: not ansible_check_mode