[2.9] Remove temp directory created by wait_for_connection (#64738)

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>
(cherry picked from commit 68428efc39)
pull/64746/head
Abhijeet Kasurde 5 years ago committed by Matt Davis
parent 604e06c482
commit f6a10b5633

@ -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