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
612a1a64
Commit
612a1a64
authored
Mar 31, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply extra vars after all other vars have been merged in a play
Fixes #6677
parent
b9c044b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
lib/ansible/playbook/play.py
+4
-3
No files found.
lib/ansible/playbook/play.py
View file @
612a1a64
...
@@ -93,6 +93,10 @@ class Play(object):
...
@@ -93,6 +93,10 @@ class Play(object):
self
.
_update_vars_files_for_host
(
None
)
self
.
_update_vars_files_for_host
(
None
)
# apply any extra_vars specified on the command line now
if
type
(
self
.
playbook
.
extra_vars
)
==
dict
:
self
.
vars
=
utils
.
combine_vars
(
self
.
vars
,
self
.
playbook
.
extra_vars
)
# template everything to be efficient, but do not pre-mature template
# template everything to be efficient, but do not pre-mature template
# tasks/handlers as they may have inventory scope overrides
# tasks/handlers as they may have inventory scope overrides
_tasks
=
ds
.
pop
(
'tasks'
,
[])
_tasks
=
ds
.
pop
(
'tasks'
,
[])
...
@@ -684,9 +688,6 @@ class Play(object):
...
@@ -684,9 +688,6 @@ class Play(object):
else
:
else
:
raise
errors
.
AnsibleError
(
"'vars_prompt' section is malformed, see docs"
)
raise
errors
.
AnsibleError
(
"'vars_prompt' section is malformed, see docs"
)
if
type
(
self
.
playbook
.
extra_vars
)
==
dict
:
vars
=
utils
.
combine_vars
(
vars
,
self
.
playbook
.
extra_vars
)
return
vars
return
vars
# *************************************************
# *************************************************
...
...
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