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>
This commit is contained in:
parent
fed0496005
commit
68428efc39
2 changed files with 5 additions and 0 deletions
2
changelogs/fragments/62407-wait_for_connection.yml
Normal file
2
changelogs/fragments/62407-wait_for_connection.yml
Normal file
|
@ -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…
Reference in a new issue