diff options
author | Luke Meyer <lmeyer@redhat.com> | 2017-11-28 15:46:50 -0500 |
---|---|---|
committer | Luke Meyer <lmeyer@redhat.com> | 2017-11-30 16:45:20 -0500 |
commit | fbb4e1ca73fd39ce9f18fa7c6f05766ccb0e484a (patch) | |
tree | 12ebe3c443f4f0a0af48a7afd2831d2f5dfb7b1c /roles/openshift_node/tasks/install.yml | |
parent | fdf3edec3f880d21e19e2007065be3ed0ed59a13 (diff) | |
download | openshift-fbb4e1ca73fd39ce9f18fa7c6f05766ccb0e484a.tar.gz openshift-fbb4e1ca73fd39ce9f18fa7c6f05766ccb0e484a.tar.bz2 openshift-fbb4e1ca73fd39ce9f18fa7c6f05766ccb0e484a.tar.xz openshift-fbb4e1ca73fd39ce9f18fa7c6f05766ccb0e484a.zip |
retry package operations
When a package install/update fails due to network blips or other spotty
availability, retry it. If the failure is a real failure (e.g. package
is really not there) it still fails after 3 tries (Ansible default).
Diffstat (limited to 'roles/openshift_node/tasks/install.yml')
-rw-r--r-- | roles/openshift_node/tasks/install.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/openshift_node/tasks/install.yml b/roles/openshift_node/tasks/install.yml index 9a91e2fb6..1ed4a05c1 100644 --- a/roles/openshift_node/tasks/install.yml +++ b/roles/openshift_node/tasks/install.yml @@ -5,6 +5,8 @@ package: name: "{{ openshift.common.service_type }}-node{{ (openshift_pkg_version | default('')) | oo_image_tag_to_rpm_version(include_dash=True) }}" state: present + register: result + until: result | success - name: Install sdn-ovs package package: @@ -12,11 +14,15 @@ state: present when: - openshift_node_use_openshift_sdn | bool + register: result + until: result | success - name: Install conntrack-tools package package: name: "conntrack-tools" state: present + register: result + until: result | success - when: - openshift.common.is_containerized | bool |