diff --git a/bin/ansible-connection b/bin/ansible-connection index dc99e10a007..712afe3ac90 100755 --- a/bin/ansible-connection +++ b/bin/ansible-connection @@ -263,6 +263,8 @@ def main(): if rc == 0: process.run() + else: + process.shutdown() sys.exit(rc)