add handlers & some minors corrections
This commit is contained in:
parent
e400414802
commit
4bb3edc19f
5
handlers/main.yml
Normal file
5
handlers/main.yml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
- name: restart nagios-nrpe-server
|
||||
systemd_service:
|
||||
name: nagios-nrpe-server
|
||||
state: restarted
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user