summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/tasks/upgrade
diff options
context:
space:
mode:
authorLuke Meyer <lmeyer@redhat.com>2017-11-28 15:46:50 -0500
committerLuke Meyer <lmeyer@redhat.com>2017-11-30 16:45:20 -0500
commitfbb4e1ca73fd39ce9f18fa7c6f05766ccb0e484a (patch)
tree12ebe3c443f4f0a0af48a7afd2831d2f5dfb7b1c /roles/openshift_node/tasks/upgrade
parentfdf3edec3f880d21e19e2007065be3ed0ed59a13 (diff)
downloadopenshift-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/upgrade')
-rw-r--r--roles/openshift_node/tasks/upgrade/rpm_upgrade.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/openshift_node/tasks/upgrade/rpm_upgrade.yml b/roles/openshift_node/tasks/upgrade/rpm_upgrade.yml
index a998acf21..fcbe1a598 100644
--- a/roles/openshift_node/tasks/upgrade/rpm_upgrade.yml
+++ b/roles/openshift_node/tasks/upgrade/rpm_upgrade.yml
@@ -8,10 +8,14 @@
# We verified latest rpm available is suitable, so just yum update.
- name: Upgrade packages
package: "name={{ openshift.common.service_type }}-{{ component }}{{ openshift_pkg_version }} state=present"
+ register: result
+ until: result | success
- name: Ensure python-yaml present for config upgrade
package: name=PyYAML state=present
when: not openshift.common.is_atomic | bool
+ register: result
+ until: result | success
- name: Install Node service file
template: