base: Just change this to run on rhel7 and rhel6 only with yum. The next task works for fedora hosts.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-04-08 20:55:09 +00:00
parent fef0fcbc0e
commit 4e51f101be

View file

@ -6,12 +6,12 @@
#
- name: ensure packages required for semanage are installed (yum)
package: name={{ item }} state=present
yum: name={{ item }} state=present
with_items:
- policycoreutils-python
tags:
- selinux
when: ansible_distribution_major_version|int != 8 and ansible_python_interpreter != "/usr/bin/python3"
when: ansible_distribution_major_version|int < 8
- name: ensure packages required for semanage are installed (dnf)
dnf: name=['policycoreutils-python-utils'] state=present