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:
parent
8dd9c64cbc
commit
ff233b65a6
2 changed files with 0 additions and 4 deletions
|
@ -4,4 +4,3 @@
|
|||
ansible.builtin.systemd:
|
||||
name: filebeat
|
||||
state: restarted
|
||||
when: not ansible_check_mode
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue