I recently discovered a bunch of .retry files cluttering up my home directory, which is not very tidy:
/home/tim $ ls -l *.retry
-rw-r–r–. 1 tim tim 15 Dec 19 10:46 all.retry
-rw-r–r–. 1 tim tim 21 Dec 19 13:56 check.retry
-rw-r–r–. 1 tim tim 14 Dec 19 10:13 deploy-local.retry
-rw-r–r–. 1 tim tim 21 Dec 24 11:48 deploy.retry
-rw-r–r–. 1 tim tim 14 Dec 19 09:56 post-deploy.retry
-rw-r–r–. 1 tim tim 14 Dec 18 15:44 push-local-repos.retry
-rw-r–r–. 1 tim tim 21 Dec 19 13:54 run.retry
-rw-r–r–. 1 tim tim 21 Dec 19 11:02 system.retry
I did a quick google, and found https://github.com/ansible/ansible/issues/5260. I couldn’t find any continued discussion on the mailing list, so I’m starting one
@mpdehaan: you mentioned “access control is important” as a reason not to use a system-wide location. Are you able to expand on that? Presumably you can still choose whatever permissions you like for files created in /tmp/, so in what situations is a /tmp location not acceptable due to access control reasons?
I don’t know what .retry files are used for, so please forgive me if the above is a dumb question.
A better alternative location may be $XDG_RUNTIME_DIR, if defined. This is owned by the user, and not readable by anyone else. It will be cleared upon user logout (according to http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html).
Like I said, I don’t know what .retry files are used for, so I can’t tell if that’s acceptable. But if ansible is going to create stuff in my home directory, I think it should at least be scoped appropriately (e.g in an ansible
directory under ~/.config or ~/.local/share or ~/.cache or something), not an unbounded number of individual files.
Cheers,
- Tim.