Try to install our fi-collectd module if it is not installed.
This commit is contained in:
parent
9694a2c908
commit
7d29f1c153
1 changed files with 9 additions and 4 deletions
|
@ -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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue