Retry updating apt-cache
The original mirror script had a retry loop that turns out to be important given that we have mirror connection hiccups. Add a retry loop to our updating of the apt-cache so that we don't have to recycle entire nodes. Change-Id: I6157cd4fded020bdbe2872a4041bd3001eb0b1d2
This commit is contained in:
parent
6e7c116793
commit
9f5aed800a
@ -25,3 +25,6 @@
|
||||
apt:
|
||||
update_cache: yes
|
||||
when: ansible_os_family == 'Debian'
|
||||
register: apt_cache
|
||||
until: "'cache_updated' in apt_cache"
|
||||
retries: 3
|
||||
|
Loading…
Reference in New Issue
Block a user