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
bf06e363
Commit
bf06e363
authored
Sep 30, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated async to pass along no_log setting
parent
ddafed44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
lib/ansible/plugins/action/async.py
+6
-2
No files found.
lib/ansible/plugins/action/async.py
View file @
bf06e363
...
...
@@ -40,8 +40,12 @@ class ActionModule(ActionBase):
env_string
=
self
.
_compute_environment_string
()
module_args
=
self
.
_task
.
args
.
copy
()
if
self
.
_play_context
.
no_log
or
not
C
.
DEFAULT_NO_TARGET_SYSLOG
:
module_args
[
'_ansible_no_log'
]
=
True
# configure, upload, and chmod the target module
(
module_style
,
shebang
,
module_data
)
=
self
.
_configure_module
(
module_name
=
module_name
,
module_args
=
self
.
_task
.
args
,
task_vars
=
task_vars
)
(
module_style
,
shebang
,
module_data
)
=
self
.
_configure_module
(
module_name
=
module_name
,
module_args
=
module_
args
,
task_vars
=
task_vars
)
self
.
_transfer_data
(
remote_module_path
,
module_data
)
self
.
_remote_chmod
(
'a+rx'
,
remote_module_path
)
...
...
@@ -50,7 +54,7 @@ class ActionModule(ActionBase):
self
.
_transfer_data
(
async_module_path
,
async_module_data
)
self
.
_remote_chmod
(
'a+rx'
,
async_module_path
)
argsfile
=
self
.
_transfer_data
(
self
.
_connection
.
_shell
.
join_path
(
tmp
,
'arguments'
),
json
.
dumps
(
self
.
_task
.
args
))
argsfile
=
self
.
_transfer_data
(
self
.
_connection
.
_shell
.
join_path
(
tmp
,
'arguments'
),
json
.
dumps
(
module_
args
))
async_limit
=
self
.
_task
.
async
async_jid
=
str
(
random
.
randint
(
0
,
999999999999
))
...
...
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