parent
3fb4c91d4c
commit
e9c83b7a17
2 changed files with 4 additions and 0 deletions
2
changelogs/fragments/57248-gather_facts-cleanup-tmp.yaml
Normal file
2
changelogs/fragments/57248-gather_facts-cleanup-tmp.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- gather_facts - Clean up tmp files upon completion (https://github.com/ansible/ansible/issues/57248)
|
|
@ -74,6 +74,8 @@ class ActionModule(ActionBase):
|
|||
skipped[fact_module] = res.get('msg')
|
||||
else:
|
||||
result = combine_vars(result, {'ansible_facts': res.get('ansible_facts', {})})
|
||||
|
||||
self._remove_tmp_path(self._connection._shell.tmpdir)
|
||||
else:
|
||||
# do it async
|
||||
jobs = {}
|
||||
|
|
Loading…
Reference in a new issue