Lots of empty directories left in /tmp #397
Closed
Comments
Perhaps a side effect of using:
? |
Nope, without it I get lots in /root/.ansible/tmp, including a:
|
This is a regression with the new temp file handling code for 2.7, should hopefully have a fix today (yay, finally a free day to look at this stuff :) ) |
The problem was due to removing duplicate data appearing in multiple places. I forgot that the default Ansible behaviour is to reset that "shell.tmpdir" behaviour after remove is called. Fixed and test added for it. Thanks a ton for reporting this! Hopefully will have an interim 0.2.4 release out perhaps by end of day. |
dw
added a commit
that referenced
this issue
Oct 23, 2018
Newer Ansibles use atexit.register() to invoke cleanup, so we need to run those registrations after each run.
dw
added a commit
that referenced
this issue
Dec 13, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ansible 2.7.0
mitogen git ad44ad1 (Oct 3)
Scientific Linux 7.5
After running I end up with lots of empty directories left in tmp:
The text was updated successfully, but these errors were encountered: