-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathargument_specs.yml
163 lines (142 loc) · 5.6 KB
/
argument_specs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
---
argument_specs:
main:
short_description: 'Deploy files on managed nodes'
description:
- 'The only entry point of the role C(file_deployment)'
- 'This will deploy the files defined in C(fd_files)'
author:
- 'Steffen Scheib'
options:
fd_quiet_assert:
description: 'Whether to quiet assert statements'
version_added: '1.0.0'
type: 'bool'
required: false
default: false
fd_files:
description:
- 'Files or content to deploy'
- 'For files specify C(src) and for content specify C(content) to deploy'
version_added: '1.0.0'
type: 'list'
required: true
elements: 'dict'
options:
src:
description:
- 'Source file to copy to the destination'
- 'Required if C(content) is not defined'
type: 'str'
# required_one_of is only supported for modules
# https://github.com/ansible/ansible/issues/74995
required: false
content:
description:
- 'Content to add to a file on the managed node'
- 'Required if C(src) is not defined'
- 'B(Templating is not supported), this is meant for B(plaintext files)'
type: 'str'
# required_one_of is only supported for modules
# https://github.com/ansible/ansible/issues/74995
required: false
dest:
description: 'Destination path on the managed node for either the C(content) or C(src) file'
type: 'str'
required: true
owner:
description: 'Owner of the destination file for either the C(content) or C(src) file'
type: 'str'
required: true
group:
description: 'Group of the destination file for either the C(content) or C(src) file'
type: 'str'
required: true
mode:
description: 'Mode of the destination file for either the C(content) or C(src) file'
type: 'str'
required: true
attributes:
description: 'The attributes the resulting filesystem object should have'
type: 'str'
required: false
backup:
description: 'The attributes the resulting filesystem object should have'
type: 'bool'
required: false
default: false
checksum:
description:
- 'SHA1 checksum of the file being transferred'
- 'Used to validate that the copy of the file was successful'
- 'If this is not provided, Ansible will use the local calculated checksum of the src file'
type: 'str'
required: false
decrypt:
description: 'This option controls the auto-decryption of source files using vault'
type: 'bool'
required: false
default: true
directory_mode:
description:
- 'Set the access permissions of newly created directories to the given mode'
- 'Permissions on existing directories do not change'
type: 'str'
required: false
follow:
description: >-
This flag indicates that filesystem links in the destination, if they exist, should be followed
type: 'bool'
required: false
default: true
force:
description:
- 'Influence whether the remote file must always be replaced'
- 'If C(true), the remote file will be replaced when contents are different than the source'
- 'If C(false), the file will only be transferred if the destination does not exist'
type: 'bool'
required: false
default: true
local_follow:
description: >-
This flag indicates that filesystem links in the source tree, if they exist, should be followed
type: 'bool'
required: false
default: true
remote_src:
description:
- 'Influence whether src needs to be transferred or already is present remotely'
- 'If C(false), it will search for C(src) on the controller node'
- 'If C(true) it will search for C(src) on the managed (remote) node'
- 'Auto-decryption of files does not work when C(remote_src=yes)'
type: 'bool'
required: false
default: false
selevel:
description: 'The level part of the SELinux filesystem object context'
type: 'str'
required: false
serole:
description: 'The role part of the SELinux filesystem object context'
type: 'str'
required: false
setype:
description: 'The type part of the SELinux filesystem object context'
type: 'str'
required: false
seuser:
description: 'The user part of the SELinux filesystem object context'
type: 'str'
required: false
unsafe_writes:
description: >-
Influence when to use atomic operation to prevent data corruption or inconsistent reads from
the target filesystem object
type: 'bool'
required: false
default: false
validate:
description: 'The validation command to run before copying the updated file into the final destination'
type: 'str'
required: false
...