2024-09-24 07:38:05 +00:00
|
|
|
- name: Install NRPE packages
|
2024-09-23 12:30:38 +00:00
|
|
|
apt:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
|
|
|
loop:
|
|
|
|
- nagios-nrpe-server
|
|
|
|
- nagios-plugins-contrib
|
2024-09-24 07:38:05 +00:00
|
|
|
- name: Set NRPE generic configuration
|
2024-09-23 12:30:38 +00:00
|
|
|
copy:
|
2024-09-24 07:38:05 +00:00
|
|
|
src: nrpe.cfg
|
2024-09-23 12:30:38 +00:00
|
|
|
dest: /etc/nagios/nrpe.d/90-vn.cfg
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '0644'
|
|
|
|
notify: restart-nrpe
|
2024-09-24 07:38:05 +00:00
|
|
|
- name: Create NRPE local configuration file
|
2024-09-23 12:30:38 +00:00
|
|
|
file:
|
|
|
|
path: /etc/nagios/nrpe.d/99-local.cfg
|
|
|
|
state: touch
|
|
|
|
owner: nagios
|
|
|
|
group: nagios
|
|
|
|
mode: '0640'
|