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:
Monty Taylor 2017-08-16 08:19:26 -05:00
parent 6e7c116793
commit 9f5aed800a
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594

View File

@ -25,3 +25,6 @@
apt:
update_cache: yes
when: ansible_os_family == 'Debian'
register: apt_cache
until: "'cache_updated' in apt_cache"
retries: 3