01110000 01100101 01110000 00111000 00100000
01101100 01101001 01101110 01110100 01101001 01101110 01100111 00100000 01110011 01110101 01100011 01101011 01110011
This commit is contained in:
parent
9d8721dbde
commit
9d37b0c8aa
2 changed files with 2 additions and 2 deletions
|
@ -628,7 +628,7 @@ class TaskExecutor:
|
||||||
delegated_vars = variables.get('ansible_delegated_vars', dict()).get(self._task.delegate_to, dict()).copy()
|
delegated_vars = variables.get('ansible_delegated_vars', dict()).get(self._task.delegate_to, dict()).copy()
|
||||||
if len(delegated_vars) > 0:
|
if len(delegated_vars) > 0:
|
||||||
result["_ansible_delegated_vars"] = dict()
|
result["_ansible_delegated_vars"] = dict()
|
||||||
for k in ('ansible_delegated_host', 'ansible_host' ):
|
for k in ('ansible_delegated_host', 'ansible_host'):
|
||||||
result["_ansible_delegated_vars"][k] = delegated_vars.get(k)
|
result["_ansible_delegated_vars"][k] = delegated_vars.get(k)
|
||||||
|
|
||||||
# and return
|
# and return
|
||||||
|
|
|
@ -525,7 +525,7 @@ class VariableManager:
|
||||||
|
|
||||||
new_delegated_host_vars = dict(
|
new_delegated_host_vars = dict(
|
||||||
ansible_delegated_host=delegated_host_name,
|
ansible_delegated_host=delegated_host_name,
|
||||||
ansible_host=delegated_host_name, # not redundant as other sources can change ansible_host
|
ansible_host=delegated_host_name, # not redundant as other sources can change ansible_host
|
||||||
ansible_port=new_port,
|
ansible_port=new_port,
|
||||||
ansible_user=C.DEFAULT_REMOTE_USER,
|
ansible_user=C.DEFAULT_REMOTE_USER,
|
||||||
ansible_connection=C.DEFAULT_TRANSPORT,
|
ansible_connection=C.DEFAULT_TRANSPORT,
|
||||||
|
|
Loading…
Reference in a new issue