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
88e1aa94
Commit
88e1aa94
authored
Sep 19, 2015
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add play context vars to list of variables before post validation
Fixes #12437
parent
05f6e764
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
lib/ansible/executor/task_executor.py
+3
-4
No files found.
lib/ansible/executor/task_executor.py
View file @
88e1aa94
...
@@ -263,11 +263,10 @@ class TaskExecutor:
...
@@ -263,11 +263,10 @@ class TaskExecutor:
# fields set from the play/task may be based on variables, so we have to
# fields set from the play/task may be based on variables, so we have to
# do the same kind of post validation step on it here before we use it.
# do the same kind of post validation step on it here before we use it.
self
.
_play_context
.
post_validate
(
templar
=
templar
)
# We also add "magic" variables back into the variables dict to make sure
# a certain subset of variables exist.
# now that the play context is finalized, we can add 'magic'
# variables to the variable dictionary
self
.
_play_context
.
update_vars
(
variables
)
self
.
_play_context
.
update_vars
(
variables
)
self
.
_play_context
.
post_validate
(
templar
=
templar
)
# Evaluate the conditional (if any) for this task, which we do before running
# Evaluate the conditional (if any) for this task, which we do before running
# the final task post-validation. We do this before the post validation due to
# the final task post-validation. We do this before the post validation due to
...
...
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