Closed abalage closed 1 year ago
Fixes #407
This pull request has been marked 'stale' due to lack of recent activity. If there is no further activity, the PR will be closed in another 30 days. Thank you for your contribution!
Please read this blog post to see the reasons why I mark pull requests as stale.
Okay I got the things written in that blog, no problem with that. However the fix is just a single line, without breaking anything but solving reported issues. Imho it would be pity not incorporating that. :)
This issue is no longer marked for closure.
This will break idempotence—for my roles, I always manage apt caches at the play level, not at the role level. Otherwise every role I have, I would need to add in update_cache
and manage a lifetime for the cache, which I'd rather not do since everyone has a different approach. See: https://github.com/geerlingguy/ansible-role-docker/blob/master/molecule/default/converge.yml#L6-L9
Yes I went down that path too because of the change was not merged when I made the PR. Thanks for the feedback though.
Explicitly call package cache update only on first occurrence.