vn-ansible/roles/linux-nrpe/tasks/main.yaml

23 lines
468 B
YAML
Raw Normal View History

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