Using this module you are able manage the SELinux configuration on the host. It can also reboot the host if required.
libselinux-python
package is required on the host executing the playbook/role.
Variable | Required | Default | Comments |
---|---|---|---|
selinux_policy |
No | targeted |
The name of the SELinux policy to use |
selinux_state |
No | enforcing |
The SELinux mode to be used. |
reboot |
No | false |
This flag will tell the remote machine to reboot after modifying. |
- hosts: all
roles:
- role: ericsysmin.selinux
selinux_state: disabled
reboot: true
MIT
Eric Anderson
ericsysmin.com