ComplianceAsCode / ComplianceAsCode/content
Failed on "Set SELinux boolean ssh_sysadm_login accordingly"
- Dominant language
- Shell
- Stars
- 2.8k
- Forks
- 828
- Avg merge
- 3d 8m
- Merged PRs (30d)
- 80
Description
#### Description of problem:
I ran `ansible-playbook harden-al2.yml`. However, it's failing at Set SELinux boolean ssh_sysadm_login accordingly.
#### SCAP Security Guide Version:
#### Operating System Version:
Amazon Linux 2
#### Steps to Reproduce:
1. I ran ansible-playbook harden-al2.yml
#### Actual Results:
It failed with this errors
```
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named selinux
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (libselinux-python) on ip-172-31-8-206.ec2.internal's Python /usr/bin/python2. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}
```
#### Expected Results:
It should not fail.
#### Additional Information/Debugging Steps:
We stopped using Python 2. Can I comment it out from the yml file so that it bypasses it?
Contributor guide
Assessment
This issue has not been assessed yet.