--- - name: install mandatory selinux packages package: name: "{{ 'policycoreutils-python' if ansible_distribution_major_version < 8 else 'python3-policycoreutils' }}" state: installed