mirror of https://github.com/ansible/ansible.git
[stable-2.9] Add method to automatically clean up after an action plugin (#65509)
* Use correct var, move cleanup for async
* Add changelog and tests. Fixes #65393. Fixes #65277.
* Kill off all long running async tasks from listen_ports_facts
* Update task to work with older jinja2
(cherry picked from commit 03a4edb
)
Co-authored-by: Matt Martz <matt@sivel.net>
pull/66383/head
parent
56c6ebe258
commit
09e89d538c
@ -0,0 +1,7 @@
|
||||
bugfixes:
|
||||
- ActionBase - Add new ``cleanup`` method that is explicitly run by the
|
||||
``TaskExecutor`` to ensure that the shell plugins ``tmpdir`` is always
|
||||
removed. This change means that individual action plugins need not be
|
||||
responsible for removing the temporary directory, which ensures that
|
||||
we don't have code paths that accidentally leave behind the temporary
|
||||
directory.
|
Loading…
Reference in New Issue