Add compatibility with ubuntu

This commit is contained in:
nemunaire 2025-07-20 16:09:05 +02:00
commit 1bb1cce360

View file

@ -6,7 +6,7 @@
- nagios-nrpe-plugin
state: present
update_cache: yes
when: ansible_distribution == 'Debian'
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
- name: install nrpe packages (alpine)
apk:
@ -35,7 +35,7 @@
dest: /etc/nagios/nrpe.cfg
notify:
- reload nagios-nrpe-server
when: ansible_distribution == 'Debian'
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
- name: ensure /etc/nagios/nrpe.d exists
file: