23 lines
531 B
YAML
23 lines
531 B
YAML
|
- name: Install NRPE packages
|
||
|
apt:
|
||
|
name: "{{ nagios_packages }}"
|
||
|
state: present
|
||
|
install_recommends: no
|
||
|
- name: Set NRPE generic configuration
|
||
|
template:
|
||
|
src: nrpe.cfg
|
||
|
dest: /etc/nagios/nrpe.d/90-vn.cfg
|
||
|
owner: root
|
||
|
group: root
|
||
|
mode: u=rw,g=r,o=r
|
||
|
notify: restart-nrpe
|
||
|
- name: Create NRPE local configuration file
|
||
|
file:
|
||
|
path: /etc/nagios/nrpe.d/99-local.cfg
|
||
|
state: touch
|
||
|
owner: nagios
|
||
|
group: nagios
|
||
|
mode: u=rw,g=r,o=
|
||
|
modification_time: preserve
|
||
|
access_time: preserve
|