mirror of https://github.com/ansible/ansible.git
fix reset_connection with templated connection variables (#84240)
* ssh: Test reset_connection with templated ansible_ssh_executable Add failing test to confirm subsequent fixes are necessary & sufficient. * ssh: Fix reset_connection with templated ansible_ssh_executable Signed-off-by: Alex Willmer <alex@moreati.org.uk>pull/82263/head
parent
eed6d48046
commit
59d9737788
@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- ssh - connection options were incorrectly templated during ``reset_connection`` tasks (https://github.com/ansible/ansible/pull/84238).
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
- hosts: "{{ target_hosts }}"
|
||||||
|
gather_facts: false
|
||||||
|
vars:
|
||||||
|
ansible_ssh_executable: "{{ 'ssh' | trim }}"
|
||||||
|
tasks:
|
||||||
|
# https://github.com/ansible/ansible/issues/84238
|
||||||
|
- meta: reset_connection
|
||||||
Loading…
Reference in New Issue