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
a9b5b1bf
Commit
a9b5b1bf
authored
Sep 09, 2014
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test that we can override variables set in inventory when the vars_file name is templated
Fixes #8903
parent
8dec4e3a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
test/integration/inventory
+7
-0
test/integration/roles/test_var_precedence_inven_override/tasks/main.yml
+5
-0
test/integration/test_var_precedence.yml
+8
-0
No files found.
test/integration/inventory
View file @
a9b5b1bf
...
...
@@ -6,6 +6,13 @@ testhost2 ansible_ssh_host=127.0.0.1 ansible_connection=local
# by (preferred) group_vars/ and host_vars/ variables
# and are used in testing of variable precedence
[inven_overridehosts]
invenoverride ansible_ssh_host=127.0.0.1 ansible_connection=local
[inven_overridehosts:vars]
foo=foo
var_dir=vars
[arbitrary_parent:children]
local
...
...
test/integration/roles/test_var_precedence_inven_override/tasks/main.yml
0 → 100644
View file @
a9b5b1bf
---
-
debug
:
var=foo
-
assert
:
that
:
-
'
foo
==
"bar"'
test/integration/test_var_precedence.yml
View file @
a9b5b1bf
...
...
@@ -26,3 +26,11 @@
-
'
vars_files_var
==
"vars_files_var"'
-
'
vars_files_var_role
==
"vars_files_var_role3"'
-
'
registered_var
==
"this
is
from
set_fact"'
-
hosts
:
inven_overridehosts
vars_files
:
-
"
{{
var_dir
}}/test_var_precedence.yml"
roles
:
-
role
:
test_var_precedence_inven_override
foo
:
bar
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