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
bb58cbcd
Commit
bb58cbcd
authored
Mar 20, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
now use combine vars to preserve existing cached host vars
parent
608496db
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/ansible/runner/action_plugins/add_host.py
+2
-2
No files found.
lib/ansible/runner/action_plugins/add_host.py
View file @
bb58cbcd
...
...
@@ -20,7 +20,7 @@ import ansible
from
ansible.callbacks
import
vv
from
ansible.errors
import
AnsibleError
as
ae
from
ansible.runner.return_data
import
ReturnData
from
ansible.utils
import
parse_kv
from
ansible.utils
import
parse_kv
,
combine_vars
from
ansible.inventory.host
import
Host
from
ansible.inventory.group
import
Group
...
...
@@ -92,7 +92,7 @@ class ActionModule(object):
# actually load host vars
new_host
.
vars
=
inventory
.
get_host_variables
(
new_name
,
update_cached
=
True
,
vault_password
=
inventory
.
_vault_password
)
new_host
.
vars
=
combine_vars
(
new_host
.
vars
,
inventory
.
get_host_variables
(
new_name
,
update_cached
=
True
,
vault_password
=
inventory
.
_vault_password
)
)
# Add any passed variables to the new_host
for
k
in
args
.
keys
():
...
...
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