selinux
Collection: posix
Full Name: parallax.posix.selinux
Aliases: ansible.posix.selinux, selinux
Synopsis
Manage selinux
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| policy | string | The name of the SELinux policy to use (e.g. targeted, minimum, mls) | ||
| state | string | yes | The SELinux mode to set Choices: enforcing, permissive, disabled | |
| configfile | string | /etc/selinux/config | Path to the SELinux configuration file |
Example
- name: Example selinux task
selinux:
state: enforcing