Fix another yum->dnf ism
This commit is contained in:
parent
080f3db029
commit
85a1e3e30b
1 changed files with 19 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue