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
|
- name: nrpe | install nrpe packages
|
||||||
apt:
|
apt:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
update_cache: true
|
|
||||||
state: present
|
state: present
|
||||||
with_items:
|
with_items:
|
||||||
- nagios-nrpe-server
|
- nagios-nrpe-server
|
||||||
@ -33,11 +32,6 @@
|
|||||||
dest: /usr/lib/nagios/plugins
|
dest: /usr/lib/nagios/plugins
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: nrpe | restart nagios-nrpe-server
|
|
||||||
systemd:
|
|
||||||
state: restarted
|
|
||||||
name: nagios-nrpe-server
|
|
||||||
|
|
||||||
- name: nrpe | allow nagios user to specific sudo
|
- name: nrpe | allow nagios user to specific sudo
|
||||||
template:
|
template:
|
||||||
src: nrpe.sudoers.j2
|
src: nrpe.sudoers.j2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user