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:
|
||||
- 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
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue