Documentation
PLEASE NOTE: This document applies to latest version and not to the latest stable release v2.19
Documentation for other releases can be found by using the version selector in the top right of any doc page.selinux
Change SELinux policy and modes.
This module manages SELinux configuration and state.
Attributes
check_mode:
support: always
Parameters
| Parameter | Required | Type | Values | Description |
|---|---|---|---|---|
| policy | string | targeted minimum mls |
The SELinux policy to use. | |
| state | true | string | enforcing permissive disabled |
The SELinux mode. |
Example
- name: Enable SELinux
selinux:
policy: targeted
state: enforcing
- name: Set SELinux to permissive mode
selinux:
state: permissive
- name: Disable SELinux
selinux:
state: disabled