...
|
...
|
@@ -21,26 +21,6 @@ class ModuleDocFragment(object):
|
21
|
21
|
# Standard files documentation fragment
|
22
|
22
|
DOCUMENTATION = """
|
23
|
23
|
options:
|
24
|
|
- path:
|
25
|
|
- description:
|
26
|
|
- - 'path to the file being managed. Aliases: I(dest), I(name)'
|
27
|
|
- required: true
|
28
|
|
- default: []
|
29
|
|
- aliases: ['dest', 'name']
|
30
|
|
- state:
|
31
|
|
- description:
|
32
|
|
- - If C(directory), all immediate subdirectories will be created if they
|
33
|
|
- do not exist, since 1.7 they will be created with the supplied permissions.
|
34
|
|
- If C(file), the file will NOT be created if it does not exist, see the M(copy)
|
35
|
|
- or M(template) module if you want that behavior. If C(link), the symbolic
|
36
|
|
- link will be created or changed. Use C(hard) for hardlinks. If C(absent),
|
37
|
|
- directories will be recursively deleted, and files or symlinks will be unlinked.
|
38
|
|
- If C(touch) (new in 1.4), an empty file will be created if the c(path) does not
|
39
|
|
- exist, while an existing file or directory will receive updated file access and
|
40
|
|
- modification times (similar to the way `touch` works from the command line).
|
41
|
|
- required: false
|
42
|
|
- default: file
|
43
|
|
- choices: [ file, link, directory, hard, touch, absent ]
|
44
|
24
|
mode:
|
45
|
25
|
required: false
|
46
|
26
|
default: null
|
...
|
...
|
@@ -59,13 +39,6 @@ options:
|
59
|
59
|
choices: []
|
60
|
60
|
description:
|
61
|
61
|
- name of the group that should own the file/directory, as would be fed to I(chown)
|
62
|
|
- src:
|
63
|
|
- required: false
|
64
|
|
- default: null
|
65
|
|
- choices: []
|
66
|
|
- description:
|
67
|
|
- - path of the file to link to (applies only to C(state=link)). Will accept absolute,
|
68
|
|
- relative and nonexisting paths. Relative paths are not expanded.
|
69
|
62
|
seuser:
|
70
|
63
|
required: false
|
71
|
64
|
default: null
|
...
|
...
|
@@ -94,19 +67,4 @@ options:
|
94
|
94
|
- level part of the SELinux file context. This is the MLS/MCS attribute,
|
95
|
95
|
sometimes known as the C(range). C(_default) feature works as for
|
96
|
96
|
I(seuser).
|
97
|
|
- recurse:
|
98
|
|
- required: false
|
99
|
|
- default: "no"
|
100
|
|
- choices: [ "yes", "no" ]
|
101
|
|
- version_added: "1.1"
|
102
|
|
- description:
|
103
|
|
- - recursively set the specified file attributes (applies only to state=directory)
|
104
|
|
- force:
|
105
|
|
- required: false
|
106
|
|
- default: "no"
|
107
|
|
- choices: [ "yes", "no" ]
|
108
|
|
- description:
|
109
|
|
- - 'force the creation of the symlinks in two cases: the source file does
|
110
|
|
- not exist (but will appear later); the destination exists and is a file (so, we need to unlink the
|
111
|
|
- "path" file and create symlink to the "src" file in place of it).'
|
112
|
97
|
"""
|