diff options
author | Alex Willmer <alex@moreati.org.uk> | 2024-12-05 21:54:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-05 21:54:46 +0100 |
commit | 59d9737788d63ea4e17b74d3c3ca1a0cf03f89ba (patch) | |
tree | 7ef22dc73040ae2f089d68342537effe27259954 /test | |
parent | Fix `failed_when` string in the second `ansible.builtin.uri` example (#84382) (diff) | |
download | ansible-59d9737788d63ea4e17b74d3c3ca1a0cf03f89ba.tar.xz ansible-59d9737788d63ea4e17b74d3c3ca1a0cf03f89ba.zip |
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>
Diffstat (limited to 'test')
-rwxr-xr-x | test/integration/targets/connection/test.sh | 1 | ||||
-rw-r--r-- | test/integration/targets/connection/test_reset_connection_templated.yml | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/integration/targets/connection/test.sh b/test/integration/targets/connection/test.sh index 6e16a87ea7..c376e28a0a 100755 --- a/test/integration/targets/connection/test.sh +++ b/test/integration/targets/connection/test.sh @@ -20,3 +20,4 @@ else fi ansible-playbook test_reset_connection.yml -i "${INVENTORY}" "$@" +ansible-playbook test_reset_connection_templated.yml -i "${INVENTORY}" "$@" diff --git a/test/integration/targets/connection/test_reset_connection_templated.yml b/test/integration/targets/connection/test_reset_connection_templated.yml new file mode 100644 index 0000000000..de36ca17ae --- /dev/null +++ b/test/integration/targets/connection/test_reset_connection_templated.yml @@ -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 |