ansible.posix.seboolean module – Toggles SELinux booleans
Note
This module is part of the ansible.posix collection (version 1.4.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install ansible.posix
.
To use it in a playbook, specify: ansible.posix.seboolean
.
New in version 1.0.0: of ansible.posix
Requirements
The below requirements are needed on the host that executes this module.
libselinux-python
libsemanage-python
python3-libsemanage
Parameters
Parameter |
Comments |
---|---|
Useful for scenarios (chrooted environment) that you can’t get the real SELinux state. Choices:
|
|
Name of the boolean to configure. |
|
Set to Choices:
|
|
Desired boolean value Choices:
|