selinux – Change policy and state of SELinux¶
Synopsis¶
Configures the SELinux mode and policy.
A reboot may be required after usage.
Ansible will not issue this reboot but will let you know when it is required.
Requirements¶
The below requirements are needed on the host that executes this module.
libselinux-python
Parameters¶
Examples¶
- name: Enable SELinux
selinux:
policy: targeted
state: enforcing
- name: Put SELinux in permissive mode, logging actions that would be blocked.
selinux:
policy: targeted
state: permissive
- name: Disable SELinux
selinux:
state: disabled
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Status¶
This module is guaranteed to have backward compatible interface changes going forward. [stableinterface]
This module is maintained by the Ansible Core Team. [core]
Red Hat Support¶
More information about Red Hat’s support of this module is available from this Red Hat Knowledge Base article.
Authors¶
Derek Carter (@goozbach) <goozbach@friocorte.com>
Hint
If you notice any issues in this documentation, you can edit this document to improve it.