From ab4ccc6b920d0249341db58f51ecdf02b2a419de Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 31 Oct 2018 16:36:03 +0000 Subject: [PATCH] issue #369: don't mass-kill all SSH clients in reconnection.yml It breaks my new development environment :) --- tests/ansible/integration/context_service/reconnection.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/ansible/integration/context_service/reconnection.yml b/tests/ansible/integration/context_service/reconnection.yml index f56719d8..eed1dfdb 100644 --- a/tests/ansible/integration/context_service/reconnection.yml +++ b/tests/ansible/integration/context_service/reconnection.yml @@ -5,15 +5,18 @@ hosts: test-targets any_errors_fatal: true tasks: + - mitogen_shutdown_all: + + - custom_python_detect_environment: + register: ssh_account_env - become: true custom_python_detect_environment: register: old_become_env - become: true - # This must be >1 for vanilla Ansible. shell: | - bash -c "( sleep 3; pkill -f sshd:; ) & disown" + bash -c "( sleep 3; kill -9 {{ssh_account_env.pid}}; ) & disown" - connection: local shell: sleep 3