Remove temp directory created by wait_for_connection (#64592)

wait_for_connection creates AnsiballZ_ping.py in temp directory,
which remains on remote machine even after playbook run.

Fixes: #62407

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/64744/head
Abhijeet Kasurde 6 years ago committed by Sam Doran
parent fed0496005
commit 68428efc39

@ -0,0 +1,2 @@
bugfixes:
- Remove a temp directory created by wait_for_connection action plugin (https://github.com/ansible/ansible/issues/62407).

@ -115,4 +115,7 @@ class ActionModule(ActionBase):
elapsed = datetime.now() - start
result['elapsed'] = elapsed.seconds
# remove a temporary path we created
self._remove_tmp_path(self._connection._shell.tmpdir)
return result

Loading…
Cancel
Save