mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-03 10:01:44 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user