Commit 18adfc6d by James Cammarata

Set some default vars on hosts created for delegate_to connections

parent a22f7b88
...@@ -315,8 +315,16 @@ class VariableManager: ...@@ -315,8 +315,16 @@ class VariableManager:
break break
else: else:
delegated_host = Host(name=delegated_host_name) delegated_host = Host(name=delegated_host_name)
delegated_host.vars.update(dict(
ansible_host=delegated_host_name,
ansible_connection = C.DEFAULT_TRANSPORT,
))
else: else:
delegated_host = Host(name=delegated_host_name) delegated_host = Host(name=delegated_host_name)
delegated_host.vars.update(dict(
ansible_host=delegated_host_name,
ansible_connection = C.DEFAULT_TRANSPORT,
))
# now we go fetch the vars for the delegated-to host and save them in our # now we go fetch the vars for the delegated-to host and save them in our
# master dictionary of variables to be used later in the TaskExecutor/PlayContext # master dictionary of variables to be used later in the TaskExecutor/PlayContext
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment