From 439b2183098401f572e85ed3daf2f4008037e372 Mon Sep 17 00:00:00 2001 From: Stephen Fromm Date: Sat, 21 Apr 2012 23:51:03 -0700 Subject: [PATCH] Add documentation for context option to file module --- rst/modules.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rst/modules.rst b/rst/modules.rst index 22483c0129e..2510a1d98ed 100644 --- a/rst/modules.rst +++ b/rst/modules.rst @@ -221,6 +221,9 @@ All parameters available to the file module are also available when running the * 'level' part of SELinux file context. This is the MLS and MCS attribute of the file context. It defaults to 's0'. Only used only used on hosts with SELinux present. +*context*: + +* accepts only 'default' as value. This will restore a file's selinux context to the default context in the policy. Does nothing if no default is available. Example action from Ansible :doc:`playbooks`:: @@ -229,6 +232,7 @@ Example action from Ansible :doc:`playbooks`:: file path=/path/to/delete state=absent file src=/file/to/link/to dest=/path/to/symlink owner=foo group=foo state=link file path=/some/path state=directory setype=httpd_sys_content_t + file path=/some/path state=directory context=default .. _git: