base: fix initial libselinux task to not run on python3 hosts as package: doesn't work there.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-04-08 20:51:14 +00:00
parent 28e87b1a1d
commit fef0fcbc0e

View file

@ -11,7 +11,7 @@
- policycoreutils-python
tags:
- selinux
when: ansible_distribution_major_version|int != 8
when: ansible_distribution_major_version|int != 8 and ansible_python_interpreter != "/usr/bin/python3"
- name: ensure packages required for semanage are installed (dnf)
dnf: name=['policycoreutils-python-utils'] state=present