1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/docsite/rst/modules/selinux.rst

57 lines
1.2 KiB
ReStructuredText
Raw Normal View History

2012-08-31 01:14:01 +02:00
.. _selinux:
2012-08-31 01:08:05 +02:00
selinux
2012-10-04 02:58:27 +02:00
``````````````````````````````
2012-08-31 01:08:05 +02:00
.. versionadded:: 0.7
2012-10-04 02:58:27 +02:00
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.
2012-08-31 01:08:05 +02:00
2012-10-04 02:58:27 +02:00
.. raw:: html
2012-08-31 01:08:05 +02:00
2012-10-04 02:58:27 +02:00
<table>
<tr>
<th class="head">parameter</th>
<th class="head">required</th>
<th class="head">default</th>
<th class="head">choices</th>
<th class="head">comments</th>
</tr>
<tr>
<td>policy</td>
<td>yes</td>
<td></td>
<td><ul></ul></td>
<td>name of the SELinux policy to use (example: 'targeted')</td>
</tr>
<tr>
<td>state</td>
<td>yes</td>
<td></td>
<td><ul><li>enforcing</li><li>permissive</li><li>disabled</li></ul></td>
<td>The SELinux mode</td>
</tr>
<tr>
<td>conf</td>
<td>no</td>
<td>/etc/selinux/config</td>
<td><ul></ul></td>
<td>path to the SELinux configuration file, if non-standard</td>
</tr>
</table>
2012-08-31 01:08:05 +02:00
2012-10-04 02:58:27 +02:00
.. raw:: html
<p><pre>
selinux policy=targeted state=enforcing
2012-10-04 02:58:27 +02:00
</pre></p>
<p><pre>
selinux policy=targeted state=disabled
2012-10-04 02:58:27 +02:00
</pre></p>
<br/>
.. raw:: html
2012-08-31 01:08:05 +02:00
2012-10-04 02:58:27 +02:00
<h4>Notes</h4>
<p>Not tested on any debian based system</p>