Fix another yum->dnf ism

This commit is contained in:
Kevin Fenzi 2015-11-09 17:34:26 +00:00
parent 080f3db029
commit 85a1e3e30b

View file

@ -17,6 +17,25 @@
tags:
- packages
- nagios_client
when: ansible_distribution_major_version|int < 22
# install pkgs:
- name: install nagios client pkgs
dnf: name={{ item }} state=present
with_items:
- nrpe
- nagios-plugins
- nagios-plugins-disk
- nagios-plugins-file_age
- nagios-plugins-users
- nagios-plugins-procs
- nagios-plugins-swap
- nagios-plugins-load
- nagios-plugins-ping
tags:
- packages
- nagios_client
when: ansible_distribution_major_version|int > 21
- name: install local nrpe check scripts that are not packaged
copy: src="scripts/{{ item }}" dest="{{ libdir }}/nagios/plugins/{{ item }}" mode=0755 owner=nagios group=nagios