Add retries to requirement package install
The requirement package install task includes two actions:
1. update the apt cache
2. install the packages from a remote mirror
Both of these may fail due to transient issues and should
therefore be retried.
Change-Id: I992c045273646995a6d9cebb6ea10db214ff588a
(cherry picked from commit eced28f9a9
)
This commit is contained in:
parent
3ad5a308fc
commit
6b4a115ab0
|
@ -40,6 +40,10 @@
|
|||
state: "{{ openstack_hosts_package_state }}"
|
||||
update_cache: yes
|
||||
cache_valid_time: "{{ cache_timeout }}"
|
||||
register: _install_packages
|
||||
until: _install_packages | success
|
||||
retries: 5
|
||||
delay: 2
|
||||
|
||||
# When updating the cache in the apt_repository
|
||||
# task, and the update fails, a retry does not
|
||||
|
|
Loading…
Reference in New Issue