From ca8dcb913b83d0bcf53ff46acfa86b061103e3a6 Mon Sep 17 00:00:00 2001 From: Karl Goetz Date: Thu, 2 Mar 2017 13:51:57 +1100 Subject: [PATCH] Fix nagios plugins path on RedHat Centos 6 and 7 both use lib64 so the paths.cfg needs updating to reflect that. --- tasks/configure-shinken.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasks/configure-shinken.yml b/tasks/configure-shinken.yml index 2f1a984..4a2ddf7 100644 --- a/tasks/configure-shinken.yml +++ b/tasks/configure-shinken.yml @@ -45,3 +45,13 @@ notify: - restart shinken arbiter +- name: Fix path to nagios plugins directory on RedHat family + when: ansible_os_family == "RedHat" + lineinfile: + dest: /etc/shinken/resource.d/paths.cfg + regexp: $NAGIOSPLUGINSDIR$=/usr/lib/nagios/plugins + line: $NAGIOSPLUGINSDIR$=/usr/lib64/nagios/plugins + state: present + notify: + - restart shinken arbiter +