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:
parent
fef0fcbc0e
commit
4e51f101be
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue