forked from evolix/ansible-roles
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
|
@ -4,4 +4,3 @@
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: filebeat
|
name: filebeat
|
||||||
state: restarted
|
state: restarted
|
||||||
when: not ansible_check_mode
|
|
||||||
|
|
|
@ -3,16 +3,13 @@
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: nginx
|
name: nginx
|
||||||
state: restarted
|
state: restarted
|
||||||
when: not ansible_check_mode
|
|
||||||
|
|
||||||
- name: reload nginx
|
- name: reload nginx
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: nginx
|
name: nginx
|
||||||
state: reloaded
|
state: reloaded
|
||||||
when: not ansible_check_mode
|
|
||||||
|
|
||||||
- name: restart munin
|
- name: restart munin
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: munin-node
|
name: munin-node
|
||||||
state: restarted
|
state: restarted
|
||||||
when: not ansible_check_mode
|
|
||||||
|
|
Loading…
Reference in a new issue