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 +