Added DOCUMENTATION to selinux module.
This commit is contained in:
parent
4a4979314f
commit
6cf1c78335
1 changed files with 38 additions and 17 deletions
43
selinux
43
selinux
|
@ -18,17 +18,38 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# selinux module - change policy and state of SELinux
|
DOCUMENTATION = '''
|
||||||
# usage:
|
---
|
||||||
#
|
module: selinux
|
||||||
# selinux policy=<SELINUX_POLICY> state=[enforcing|permissive|disabled] configfile=[SELINUX_CONFIG_FILE]
|
short_description: Change policy and state of SELinux
|
||||||
#
|
description:
|
||||||
# configfile defaults to /etc/selinux/config
|
- 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.
|
||||||
# policy files should be installed via the yum/apt modules
|
version_added: "0.7"
|
||||||
#
|
options:
|
||||||
# bugs:
|
policy:
|
||||||
#
|
description:
|
||||||
# Not tested on any debian based system
|
- "name of the SELinux policy to use (example: 'targeted')"
|
||||||
|
required: true
|
||||||
|
default: null
|
||||||
|
state:
|
||||||
|
description:
|
||||||
|
- The SELinux mode
|
||||||
|
required: true
|
||||||
|
default: null
|
||||||
|
choices: [ "enforcing", "permissive", "disabled" ]
|
||||||
|
conf:
|
||||||
|
description:
|
||||||
|
- path to the SELinux configuration file, if non-standard
|
||||||
|
required: false
|
||||||
|
default: "/etc/selinux/config"
|
||||||
|
examples:
|
||||||
|
- code: selinux policy=targeted state=enforcing
|
||||||
|
- code: selinux policy=targeted state=disabled
|
||||||
|
notes:
|
||||||
|
- Not tested on any debian based system
|
||||||
|
requirements: [ ]
|
||||||
|
author: Derek Carter
|
||||||
|
'''
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
Loading…
Reference in a new issue