diff --git a/common-tasks/test-force-package-cache-update.yml b/common-tasks/test-force-package-cache-update.yml index 09f33da6..e9bf9473 100644 --- a/common-tasks/test-force-package-cache-update.yml +++ b/common-tasks/test-force-package-cache-update.yml @@ -16,5 +16,9 @@ - name: First ensure apt cache is always refreshed apt: update_cache: true + register: _update + retries: 5 + delay: 2 + until: _update | succeeded when: - ansible_pkg_mgr == 'apt'