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
0bfec51a
Commit
0bfec51a
authored
Jan 28, 2013
by
Daniel Hokka Zakrisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove last remnants of daisychaining
parent
5268d49b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
library/get_url
+1
-2
library/ini_file
+5
-9
No files found.
library/get_url
View file @
0bfec51a
...
@@ -255,8 +255,7 @@ def main():
...
@@ -255,8 +255,7 @@ def main():
# Mission complete
# Mission complete
module
.
exit_json
(
url
=
url
,
dest
=
dest
,
src
=
tmpsrc
,
md5sum
=
md5sum_src
,
module
.
exit_json
(
url
=
url
,
dest
=
dest
,
src
=
tmpsrc
,
md5sum
=
md5sum_src
,
changed
=
changed
,
msg
=
info
.
get
(
'msg'
,
''
),
changed
=
changed
,
msg
=
info
.
get
(
'msg'
,
''
))
daisychain
=
"file"
,
daisychain_args
=
info
.
get
(
'daisychain_args'
,
''
))
# this is magic, see lib/ansible/module_common.py
# this is magic, see lib/ansible/module_common.py
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
...
...
library/ini_file
View file @
0bfec51a
...
@@ -153,8 +153,6 @@ def do_ini(module, filename, section=None, option=None, value=None, state='prese
...
@@ -153,8 +153,6 @@ def do_ini(module, filename, section=None, option=None, value=None, state='prese
def
main
():
def
main
():
module
=
AnsibleModule
(
module
=
AnsibleModule
(
# not checking because of daisy chain to file module
check_invalid_arguments
=
False
,
argument_spec
=
dict
(
argument_spec
=
dict
(
dest
=
dict
(
required
=
True
),
dest
=
dict
(
required
=
True
),
section
=
dict
(
required
=
True
),
section
=
dict
(
required
=
True
),
...
@@ -162,7 +160,8 @@ def main():
...
@@ -162,7 +160,8 @@ def main():
value
=
dict
(
required
=
False
),
value
=
dict
(
required
=
False
),
backup
=
dict
(
default
=
'no'
,
choices
=
BOOLEANS
),
backup
=
dict
(
default
=
'no'
,
choices
=
BOOLEANS
),
state
=
dict
(
default
=
'present'
,
choices
=
[
'present'
,
'absent'
])
state
=
dict
(
default
=
'present'
,
choices
=
[
'present'
,
'absent'
])
)
),
add_file_common_args
=
True
)
)
info
=
dict
()
info
=
dict
()
...
@@ -176,14 +175,11 @@ def main():
...
@@ -176,14 +175,11 @@ def main():
changed
=
do_ini
(
module
,
dest
,
section
,
option
,
value
,
state
,
backup
)
changed
=
do_ini
(
module
,
dest
,
section
,
option
,
value
,
state
,
backup
)
info
[
'daisychain_args'
]
=
module
.
params
file_args
=
module
.
load_file_common_arguments
(
module
.
params
)
info
[
'daisychain_args'
][
'state'
]
=
'file'
changed
=
module
.
set_file_attributes_if_different
(
file_args
,
changed
)
info
[
'daisychain_args'
][
'dest'
]
=
dest
# Mission complete
# Mission complete
module
.
exit_json
(
dest
=
dest
,
module
.
exit_json
(
dest
=
dest
,
changed
=
changed
,
msg
=
"OK"
)
changed
=
changed
,
msg
=
"OK"
,
daisychain
=
"file"
,
daisychain_args
=
info
.
get
(
'daisychain_args'
,
''
))
# this is magic, see lib/ansible/module_common.py
# this is magic, see lib/ansible/module_common.py
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
#<<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