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
94a1c221
Commit
94a1c221
authored
Jan 22, 2013
by
Daniel Hokka Zakrisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update variable precedence section with current rules
parent
48f48e8a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
docsite/rst/playbooks2.rst
+3
-3
lib/ansible/playbook/play.py
+2
-1
No files found.
docsite/rst/playbooks2.rst
View file @
94a1c221
...
@@ -777,11 +777,11 @@ to determine which place sets the value of the variable.
...
@@ -777,11 +777,11 @@ to determine which place sets the value of the variable.
1. Variables loaded from YAML files mentioned in 'vars_files' in a playbook.
1. Variables loaded from YAML files mentioned in 'vars_files' in a playbook.
2.
'vars' as defined in the playbook
.
2.
facts, whether built in or custom, or variables assigned from the 'register' keyword
.
3.
facts, whether built in or custom, or variables assigned from the 'register' keyword
.
3.
variables passed to parameterized task include statements
.
4.
variables passed to parameterized task include statements
.
4.
'vars' as defined in the playbook
.
5. Host variables from inventory.
5. Host variables from inventory.
...
...
lib/ansible/playbook/play.py
View file @
94a1c221
...
@@ -261,8 +261,9 @@ class Play(object):
...
@@ -261,8 +261,9 @@ class Play(object):
self
.
vars_files
=
[
self
.
vars_files
]
self
.
vars_files
=
[
self
.
vars_files
]
if
host
is
not
None
:
if
host
is
not
None
:
inject
=
self
.
playbook
.
SETUP_CACHE
[
host
]
.
copy
()
inject
=
{}
inject
.
update
(
self
.
playbook
.
inventory
.
get_variables
(
host
))
inject
.
update
(
self
.
playbook
.
inventory
.
get_variables
(
host
))
inject
.
update
(
self
.
playbook
.
SETUP_CACHE
[
host
])
for
filename
in
self
.
vars_files
:
for
filename
in
self
.
vars_files
:
...
...
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