Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Add retries to package installs #88

Merged
merged 2 commits into from
May 31, 2019

Conversation

denmat
Copy link
Contributor

@denmat denmat commented May 31, 2019

Both YUM and APT consistently display temporary locking when building via packer and ansible

  • retry usually only fires once anecdotally

Both YUM and APT consistently display temporary locking when building via packer and ansible

  * retry usually only fires once anecdotally
@paulfantom
Copy link
Member

paulfantom commented May 31, 2019

Nice!

Could you model it a bit after what we have in cloudalchemy/ansible-grafana role? Like here: https://github.com/cloudalchemy/ansible-grafana/blob/master/tasks/install.yml#L2-L9. Especially could you add delay and change registered variable name to start with an underscore?

@denmat
Copy link
Contributor Author

denmat commented May 31, 2019

Another recent option seems to be described here (ansible/ansible#57189) as well, using a lock_timeout instead?

@paulfantom
Copy link
Member

paulfantom commented May 31, 2019

lock_timeout looks nice, but it is "too new" (introduced in ansible 2.8) and roles here support last 3 ansible versions.

That reminds me I need to update README.md and meta/main.yml 😄

@paulfantom paulfantom merged commit e58660e into cloudalchemy:master May 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants