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
0ab721d5
Commit
0ab721d5
authored
Aug 19, 2014
by
Serge van Ginderachter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better logic for all-group variables for implicit localhost
parent
3c068333
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
+1
-4
lib/ansible/inventory/__init__.py
+1
-4
No files found.
lib/ansible/inventory/__init__.py
View file @
0ab721d5
...
...
@@ -324,6 +324,7 @@ class Inventory(object):
if
ungrouped
is
None
:
self
.
add_group
(
Group
(
'ungrouped'
))
ungrouped
=
self
.
get_group
(
'ungrouped'
)
self
.
get_group
(
'all'
)
.
add_child_group
(
ungrouped
)
ungrouped
.
add_host
(
new_host
)
return
new_host
...
...
@@ -452,10 +453,6 @@ class Inventory(object):
vars
=
{}
# special case for ungrouped hosts, make sure group_vars/all is loaded
if
len
(
host
.
groups
)
==
1
and
host
.
groups
[
0
]
.
name
==
'ungrouped'
:
vars
=
self
.
get_group_variables
(
'all'
,
vault_password
=
self
.
_vault_password
)
# plugin.run retrieves all vars (also from groups) for host
vars_results
=
[
plugin
.
run
(
host
,
vault_password
=
vault_password
)
for
plugin
in
self
.
_vars_plugins
if
hasattr
(
plugin
,
'run'
)]
for
updated
in
vars_results
:
...
...
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