Configures SELinux.
This role requires Ansible 1.4 or higher.
Name | Default | Description |
---|---|---|
selinux_policy | targeted | SELinux policy type (targeted or mls) |
selinux_state | permissive | SELinux state (permissive, enforcing or disabled) |
None
Configure SELinux in permissive mode.
- hosts: all
roles:
- { role: kbrebanov.selinux }
Disable SELinux
- hosts: all
roles:
- { role: kbrebanov.selinux, selinux_state: disabled }
Configure SELinux to use mls policy and enforcing mode
- hosts: all
roles:
- { role: kbrebanov.selinux, selinux_policy: mls, selinux_state: enforcing}
BSD
Kevin Brebanov