Add retries for utility container distro package installs
Change-Id: I48596eaf8dff25998770e6ac6b8621f73e5b99f2
This commit is contained in:
parent
93831a6091
commit
c16dcb07e4
@ -63,6 +63,10 @@
|
|||||||
state: "{{ utility_package_state }}"
|
state: "{{ utility_package_state }}"
|
||||||
update_cache: "{{ (ansible_pkg_mgr in ['apt', 'zypper']) | ternary('yes', omit) }}"
|
update_cache: "{{ (ansible_pkg_mgr in ['apt', 'zypper']) | ternary('yes', omit) }}"
|
||||||
cache_valid_time: "{{ (ansible_pkg_mgr == 'apt') | ternary(cache_timeout, omit) }}"
|
cache_valid_time: "{{ (ansible_pkg_mgr == 'apt') | ternary(cache_timeout, omit) }}"
|
||||||
|
register: install_packages
|
||||||
|
until: install_packages is success
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
|
||||||
- name: Distribute private ssh key
|
- name: Distribute private ssh key
|
||||||
copy:
|
copy:
|
||||||
|
Loading…
Reference in New Issue
Block a user