ansible-roles/nagios-nrpe/handlers/main.yml
David Prevot fc692cf65b
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
Allow more --check runs
Use “when: not ansible_check_mode” or “when <file>.stat.exists or not
ansible_check_mode” in order to provide a meaningful diff if possible.

This is an improvement from the previously reverted commit
1728eaee68.
2022-12-21 18:05:41 +01:00

14 lines
232 B
YAML

---
- name: restart nagios-nrpe-server
service:
name: nagios-nrpe-server
state: restarted
when: not ansible_check_mode
- name: restart nrpe
service:
name: nrpe
state: restarted
when: not ansible_check_mode