8c2754e6d3
* ensure hostvars are available on delegation
* also inventory_hostname must point to current host and not delegated one
* fix get_connection since it was still mixing original host vars and delegated ones
* also return connection vars for delegation and non delegation alike
* add test to ensure we have expected usage when directly assigning for non delegated host
(cherry picked from commit 84adaba6f5
)
9 lines
261 B
Text
9 lines
261 B
Text
[local]
|
|
testhost ansible_connection=local
|
|
testhost2 ansible_connection=local
|
|
testhost3 ansible_ssh_host=127.0.0.3
|
|
testhost4 ansible_ssh_host=127.0.0.4
|
|
testhost5 ansible_connection=fakelocal
|
|
|
|
[all:vars]
|
|
ansible_python_interpreter="{{ ansible_playbook_python }}"
|