From c16dcb07e47e80329020729fa0f1a5f582a2ba3b Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Mon, 19 Nov 2018 08:48:38 +0000 Subject: [PATCH] Add retries for utility container distro package installs Change-Id: I48596eaf8dff25998770e6ac6b8621f73e5b99f2 --- playbooks/utility-install.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playbooks/utility-install.yml b/playbooks/utility-install.yml index 41db9099f0..2c963876e6 100644 --- a/playbooks/utility-install.yml +++ b/playbooks/utility-install.yml @@ -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: