September 2018
Beginner to intermediate
214 pages
5h 53m
English
On the Red Hat environment, SELinux can be a pain to manage on one machine, let alone on a series of hosts. This Ansible module helps its user with the configuration of the SELinux mode and policy.
This module, along with some others, may require a reboot after performing the task. Ansible will always let the user know if this is the case. Some advanced modules may have an integrated option that initiates a reboot automatically if the host needs it.
As a quick playbook sample, we will ask Ansible to make SELinux permissive:
- name: change SELinux to permissive selinux: policy: targeted state: permissive
This module requires the libselinux-python library to be installed on the remote hosts to work properly. This ...
Read now
Unlock full access