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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user