add handlers & some minors corrections

This commit is contained in:
Ludovic Cartier 2024-12-31 16:13:31 +01:00
parent e400414802
commit 4bb3edc19f
2 changed files with 5 additions and 6 deletions

5
handlers/main.yml Normal file
View File

@ -0,0 +1,5 @@
---
- name: restart nagios-nrpe-server
systemd_service:
name: nagios-nrpe-server
state: restarted

View File

@ -7,7 +7,6 @@
- name: nrpe | install nrpe packages
apt:
name: "{{ item }}"
update_cache: true
state: present
with_items:
- nagios-nrpe-server
@ -33,11 +32,6 @@
dest: /usr/lib/nagios/plugins
mode: 0755
- name: nrpe | restart nagios-nrpe-server
systemd:
state: restarted
name: nagios-nrpe-server
- name: nrpe | allow nagios user to specific sudo
template:
src: nrpe.sudoers.j2