mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #53 from sfromm/selinux
Describe selinux functionality in file module
This commit is contained in:
commit
9d7668207e
1 changed files with 17 additions and 2 deletions
|
@ -188,6 +188,22 @@ All parameters available to the file module are also available when running the
|
||||||
|
|
||||||
* location where the symlink will be created for 'link' state, also an alias for 'path'.
|
* location where the symlink will be created for 'link' state, also an alias for 'path'.
|
||||||
|
|
||||||
|
*seuser*:
|
||||||
|
|
||||||
|
* 'user' part of SELinux file context. Will default to what is provided by system policy, if available. Only used on systems with SELinux present.
|
||||||
|
|
||||||
|
*serole*:
|
||||||
|
|
||||||
|
* 'role' part of SELinux file context. Will default to what is provided by system policy, if available. Only used on systems with SELinux present.
|
||||||
|
|
||||||
|
*setype*:
|
||||||
|
|
||||||
|
* 'type' part of SELinux file context. Will default to what is provided by system policy, if available. Only used on systems with SELinux present.
|
||||||
|
|
||||||
|
*selevel*:
|
||||||
|
|
||||||
|
* '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.
|
||||||
|
|
||||||
|
|
||||||
Example action from Ansible :doc:`playbooks`::
|
Example action from Ansible :doc:`playbooks`::
|
||||||
|
|
||||||
|
@ -195,8 +211,7 @@ Example action from Ansible :doc:`playbooks`::
|
||||||
file path=/some/path owner=foo group=foo state=directory
|
file path=/some/path owner=foo group=foo state=directory
|
||||||
file path=/path/to/delete state=absent
|
file path=/path/to/delete state=absent
|
||||||
file src=/file/to/link/to dest=/path/to/symlink owner=foo group=foo state=link
|
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
|
||||||
The file module also supports numerous SELinux attributes (documentation on this pending).
|
|
||||||
|
|
||||||
.. _git:
|
.. _git:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue