Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
819da94c
Commit
819da94c
authored
Jan 28, 2013
by
Les Aker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjusted assemble to use new file attribute handling
parent
a956a59b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
library/assemble
+5
-5
No files found.
library/assemble
View file @
819da94c
...
...
@@ -91,12 +91,12 @@ def main():
module
=
AnsibleModule
(
# not checking because of daisy chain to file module
check_invalid_arguments
=
False
,
argument_spec
=
dict
(
src
=
dict
(
required
=
True
),
dest
=
dict
(
required
=
True
),
backup
=
dict
(
default
=
False
,
choices
=
BOOLEANS
),
)
),
add_file_common_args
=
True
)
changed
=
False
...
...
@@ -124,11 +124,11 @@ def main():
shutil
.
copy
(
path
,
dest
)
changed
=
True
file_args
=
module
.
load_file_common_arguments
(
module
.
params
)
changed
=
module
.
set_file_attributes_if_different
(
file_args
,
changed
)
# Mission complete
module
.
exit_json
(
src
=
src
,
dest
=
dest
,
md5sum
=
destmd5
,
changed
=
changed
,
msg
=
"OK"
,
daisychain
=
"file"
,
daisychain_args
=
module
.
params
)
changed
=
changed
,
msg
=
"OK"
)
# this is magic, see lib/ansible/module_common.py
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment