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
cac7afd7
Commit
cac7afd7
authored
Jul 23, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
async is under construction
parent
1f44c07d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
lib/ansible/runner/__init__.py
+6
-1
No files found.
lib/ansible/runner/__init__.py
View file @
cac7afd7
...
...
@@ -111,7 +111,7 @@ class Runner(object):
module_name
=
C
.
DEFAULT_MODULE_NAME
,
# ex: copy
module_args
=
C
.
DEFAULT_MODULE_ARGS
,
# ex: "src=/tmp/a dest=/tmp/b"
forks
=
C
.
DEFAULT_FORKS
,
# parallelism level
timeout
=
C
.
DEFAULT_TIMEOUT
,
#
for async, kill after X seconds
timeout
=
C
.
DEFAULT_TIMEOUT
,
#
SSH timeout
pattern
=
C
.
DEFAULT_PATTERN
,
# which hosts? ex: 'all', 'acme.example.org'
remote_user
=
C
.
DEFAULT_REMOTE_USER
,
# ex: 'username'
remote_pass
=
C
.
DEFAULT_REMOTE_PASS
,
# ex: 'password123' or None if using key
...
...
@@ -268,12 +268,17 @@ class Runner(object):
def
_execute_async_module
(
self
,
conn
,
tmp
,
module_name
,
inject
=
None
):
''' transfer the given module name, plus the async module, then run it '''
# shell and command module are the same
module_args
=
self
.
module_args
if
module_name
==
'shell'
:
module_name
=
'command'
module_args
+=
" #USE_SHELL"
# should drop module in same directory
(
module_path
,
is_new_style
)
=
self
.
_copy_module
(
conn
,
tmp
,
module_name
,
inject
)
return
self
.
_execute_module
(
conn
,
tmp
,
'async_wrapper'
,
module_args
,
async_module
=
module_name
,
async_jid
=
self
.
generated_jid
,
...
...
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