collectd: Only configure SELinux when used
The `selinux_permissive` module fails on hosts that do not have SELinux activated. We must skip running this task on those machines to avoid fatal errors.btop
parent
82f2a7518e
commit
cfffd1d782
|
@ -30,6 +30,7 @@
|
|||
selinux_permissive:
|
||||
domain: collectd_t
|
||||
permissive: '{{ collectd_selinux_permissive|d(false) }}'
|
||||
when: ansible_selinux.status == 'enabled'
|
||||
tags:
|
||||
- selinux
|
||||
- name: ensure collectd is running
|
||||
|
|
Loading…
Reference in New Issue