From 261788329dbb4c0c0a24ce1903a358b5bddbfd54 Mon Sep 17 00:00:00 2001 From: Karl Goetz Date: Thu, 2 Mar 2017 14:30:57 +1100 Subject: [PATCH] Correct nagios path lib -> lib64 regex I hadn't quite got the syntax of this block right, now corrected. --- meta/main.yml | 2 +- tasks/configure-shinken.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/main.yml b/meta/main.yml index 085e562..a0122a5 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -4,7 +4,7 @@ galaxy_info: description: Configure Shinken to monitor your network # company: your company (optional) license: GPLv2 - min_ansible_version: 1.2 + min_ansible_version: 1.7 # # Below are all platforms currently available. Just uncomment # the ones that apply to your role. If you don't see your diff --git a/tasks/configure-shinken.yml b/tasks/configure-shinken.yml index 4a2ddf7..6dbbd8b 100644 --- a/tasks/configure-shinken.yml +++ b/tasks/configure-shinken.yml @@ -49,8 +49,8 @@ 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 + regexp: '\$NAGIOSPLUGINSDIR\$=/usr/lib.*' + line: '$NAGIOSPLUGINSDIR$=/usr/lib64/nagios/plugins' state: present notify: - restart shinken arbiter