Retry apt cache update

This task is causing some test failures from time
to time. Implementing a retry should help to reduce
transient failures.

Change-Id: Iff2bb89e51690a7646ded209853abae0632f1985
This commit is contained in:
Jesse Pretorius 2017-11-18 14:17:04 +00:00 committed by Jesse Pretorius (odyssey4me)
parent 079e600652
commit a40b253ed7

View File

@ -72,6 +72,10 @@
when:
- apt_sources_configure is defined
- apt_sources_configure | changed
register: _update
retries: 5
delay: 2
until: _update | succeeded
tags:
- apt-cache-update