From 256d61e1e79a392b969bc22513657f058709901b Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 30 Aug 2012 19:08:05 -0400 Subject: [PATCH] Document SELinux module --- rst/modules.rst | 2 ++ rst/modules/selinux.rst | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 rst/modules/selinux.rst diff --git a/rst/modules.rst b/rst/modules.rst index 028acacb5f..3deb1761ac 100644 --- a/rst/modules.rst +++ b/rst/modules.rst @@ -67,6 +67,8 @@ Let's see what's available in the Ansible module library, out of the box: .. include:: modules/postgresql_user.rst .. include:: modules/raw.rst .. include:: modules/service.rst +.. include:: modules/seboolean.rst +.. include:: modules/selinux.rst .. include:: modules/setup.rst .. include:: modules/shell.rst .. include:: modules/subversion.rst diff --git a/rst/modules/selinux.rst b/rst/modules/selinux.rst new file mode 100644 index 0000000000..a79f881bdd --- /dev/null +++ b/rst/modules/selinux.rst @@ -0,0 +1,25 @@ +.. _wait_for: + +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 | ++====================+==========+=====================+============================================================================+ +| policy | yes | | name of the SELinux policy to use (example: 'targetted') | ++--------------------+----------+---------------------+----------------------------------------------------------------------------+ +| 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`:: + + selinux policy=targetted state=enforcing + selinux policy=targetted state=disabled +