Add retries for utility container distro package installs

Change-Id: I48596eaf8dff25998770e6ac6b8621f73e5b99f2
This commit is contained in:
Jonathan Rosser 2018-11-19 08:48:38 +00:00
parent 93831a6091
commit c16dcb07e4

View File

@ -63,6 +63,10 @@
state: "{{ utility_package_state }}"
update_cache: "{{ (ansible_pkg_mgr in ['apt', 'zypper']) | ternary('yes', 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
copy: