Running the ansible seport
module in Fedora 26 produces the following error:
This module requires policycoreutils-python
However, policycoreutils-python
is already installed.
- name: install system packages
package: name={{ item }} state=present
become: true
with_items:
- libselinux-python
- policycoreutils-python
To fix this issue, install the
enum34
python package:The
enum
package is in Python 3 but not in Python 2. Theenum34
package backportsenum
to Python 2. The root cause is this line insetools/policyrep/util.py
:Please check these links for more information: