selinux – Change policy and state of SELinux¶
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.
The below requirements are needed on the host that executes this module.
- 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
Common return values are documented here, the following are the fields unique to this module: