selinux: Fix python package name for EL8

This commit is contained in:
Timo Makinen 2020-08-27 14:35:31 +03:00
parent 098ab32a78
commit 00bdcfb7de

View file

@ -1,5 +1,5 @@
---
- name: install mandatory selinux packages
package:
name: "{{ 'policycoreutils-python' if ansible_distribution_major_version < 8 else 'python3-policycoreutils' }}"
name: "{{ 'policycoreutils-python' if ansible_distribution_major_version|int < 8 else 'policycoreutils-python-utils' }}"
state: installed