Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several attempts to install apt and package #285

Merged
merged 8 commits into from
Mar 22, 2023
Merged

Conversation

FactorT
Copy link
Contributor

@FactorT FactorT commented Mar 22, 2023

Sometimes it can be error "Could not get lock /var/lib/dpkg/lock" during apt and package tasks.
Additional loop can solve this rarely error:

register: package_status
until: package_status is success
delay: 5
retries: 3
register: apt_status
until: apt_status is success
delay: 5
retries: 3

@vitabaks
Copy link
Owner

@FactorT Thanks! I think it will be useful.

The only thing that may seem is that 10 attempts are too much.
I would prefer 3 attempts in 5 seconds.

@FactorT
Copy link
Contributor Author

FactorT commented Mar 22, 2023

@vitabaks changed.

Signed-off-by: Maksim Bazhin <maksim.bazhin@gmail.com>
@vitabaks vitabaks merged commit 630be99 into vitabaks:master Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants