From dd8457ced5aac6499859eaf1f5a38140a6aef664 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Sun, 3 Nov 2024 14:40:24 +0000 Subject: [PATCH] ssh: Test reset_connection with templated ansible_ssh_executable A failing test to confirm subsequent fixes are necessary & sufficient. Signed-off-by: Alex Willmer --- test/integration/targets/connection/test.sh | 1 + .../targets/connection/test_reset_connection_templated.yml | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 test/integration/targets/connection/test_reset_connection_templated.yml diff --git a/test/integration/targets/connection/test.sh b/test/integration/targets/connection/test.sh index 6e16a87ea7b..c376e28a0af 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 00000000000..de36ca17ae2 --- /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