Signed-off-by: David Galloway <dgallowa@redhat.com>
---
# We use these scripts to check to see if any of our test nodes have bad disks
+# Ignore errors in case there are no repos enabled and package install fails
+- name: Make sure smartmontools is installed
+ package:
+ name: smartmontools
+ state: latest
+ ignore_errors: true
+
- name: Upload megacli and cli64 for raid monitoring and smart.pl to /usr/sbin/.
copy:
src: "../files/sbin/{{ item }}"
- name: Install nrpe package and dependencies (RHEL/CentOS)
yum:
- name: "{{ item }}"
+ name: "{{ nrpe_service_name }}"
state: latest
enablerepo: epel
- with_items:
- - nrpe
- - smartmontools
when: ansible_pkg_mgr == "yum" and
have_epel.rc == 0
- name: Install nrpe package and dependencies (Ubuntu)
apt:
- name: "{{ item }}"
+ name: "{{ nrpe_service_name }}"
state: latest
- with_items:
- - nagios-nrpe-server
- - smartmontools
when: ansible_pkg_mgr == "apt"
- name: Upload nagios sudoers.d for raid utilities.