Try to install our fi-collectd module if it is not installed.

This commit is contained in:
Ralph Bean 2014-11-05 15:40:47 +00:00
parent 9694a2c908
commit 7d29f1c153

View file

@ -69,12 +69,17 @@
tags: tags:
- collectd - collectd
- name: install our custom selinux module - name: check to see if its even installed yet
command: semodule -i /usr/share/collectd/fi-collectd.pp shell: semodule -l | grep fi-collectd
when: selinux_module|changed register: selinux_grep
tags:
- collectd
- name: install our custom selinux module
command: semodule -i /usr/share/collectd/fi-collectd.pp
when: selinux_module|changed or selinux_grep|failed
tags: tags:
- collectd - collectd
ignore_errors: True