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
e19ed342
Commit
e19ed342
authored
Aug 07, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure default vars are used in template calls for tasks
Fixes #8499
parent
769a5738
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
lib/ansible/playbook/task.py
+6
-2
No files found.
lib/ansible/playbook/task.py
View file @
e19ed342
...
...
@@ -208,11 +208,15 @@ class Task(object):
self
.
changed_when
=
ds
.
get
(
'changed_when'
,
None
)
self
.
failed_when
=
ds
.
get
(
'failed_when'
,
None
)
# combine the default and module vars here for use in templating
all_vars
=
self
.
default_vars
.
copy
()
all_vars
=
utils
.
combine_vars
(
all_vars
,
self
.
module_vars
)
self
.
async_seconds
=
ds
.
get
(
'async'
,
0
)
# not async by default
self
.
async_seconds
=
template
.
template_from_string
(
play
.
basedir
,
self
.
async_seconds
,
self
.
module
_vars
)
self
.
async_seconds
=
template
.
template_from_string
(
play
.
basedir
,
self
.
async_seconds
,
all
_vars
)
self
.
async_seconds
=
int
(
self
.
async_seconds
)
self
.
async_poll_interval
=
ds
.
get
(
'poll'
,
10
)
# default poll = 10 seconds
self
.
async_poll_interval
=
template
.
template_from_string
(
play
.
basedir
,
self
.
async_poll_interval
,
self
.
module
_vars
)
self
.
async_poll_interval
=
template
.
template_from_string
(
play
.
basedir
,
self
.
async_poll_interval
,
all
_vars
)
self
.
async_poll_interval
=
int
(
self
.
async_poll_interval
)
self
.
notify
=
ds
.
get
(
'notify'
,
[])
self
.
first_available_file
=
ds
.
get
(
'first_available_file'
,
None
)
...
...
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