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