2012-08-31 01:14:01 +02:00
|
|
|
.. _selinux:
|
2012-08-31 01:08:05 +02:00
|
|
|
|
|
|
|
selinux
|
|
|
|
```````
|
|
|
|
|
|
|
|
.. versionadded:: 0.7
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
+--------------------+----------+---------------------+----------------------------------------------------------------------------+
|
|
|
|
| parameter | required | default | comments |
|
|
|
|
+====================+==========+=====================+============================================================================+
|
2012-09-24 02:43:01 +02:00
|
|
|
| policy | yes | | name of the SELinux policy to use (example: 'targeted') |
|
2012-08-31 01:08:05 +02:00
|
|
|
+--------------------+----------+---------------------+----------------------------------------------------------------------------+
|
|
|
|
| state | yes | | the SELinux mode. 'enforcing', 'permissive', or 'disabled' |
|
|
|
|
+--------------------+----------+---------------------+----------------------------------------------------------------------------+
|
|
|
|
| conf | no | /etc/selinux/config | path to the SELinux configuration file, if non-standard |
|
|
|
|
+--------------------+----------+---------------------+----------------------------------------------------------------------------+
|
|
|
|
|
|
|
|
Example from Ansible :doc:`playbooks`::
|
|
|
|
|
2012-09-10 22:08:08 +02:00
|
|
|
selinux policy=targeted state=enforcing
|
|
|
|
selinux policy=targeted state=disabled
|
2012-08-31 01:08:05 +02:00
|
|
|
|