base / selinux module: do not try and load this on el6

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-03-20 20:07:29 +00:00 committed by Pierre-Yves Chibon
parent f15a5f93ec
commit f927c2774f

View file

@ -387,7 +387,7 @@
- name: install our custom selinux module
command: semodule -i /usr/local/share/rsyslog/rsyslog-audit.pp
when: selinux_module is changed
when: selinux_module is changed and ansible_distribution_major_version|int > 6
tags:
- rsyslogd
- config