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:
- collectd
- name: install our custom selinux module
command: semodule -i /usr/share/collectd/fi-collectd.pp
when: selinux_module|changed
- name: check to see if its even installed yet
shell: semodule -l | grep fi-collectd
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:
- collectd
ignore_errors: True