summaryrefslogtreecommitdiffstats
path: root/playbooks/adhoc
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 /playbooks/adhoc
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 'playbooks/adhoc')
-rw-r--r--playbooks/adhoc/uninstall.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/playbooks/adhoc/uninstall.yml b/playbooks/adhoc/uninstall.yml
index 5ed55a817..0c2a2c7e8 100644
--- a/playbooks/adhoc/uninstall.yml
+++ b/playbooks/adhoc/uninstall.yml
@@ -126,10 +126,14 @@
- origin-sdn-ovs
- tuned-profiles-openshift-node
- tuned-profiles-origin-node
+ register: result
+ until: result | success
- name: Remove flannel package
package: name=flannel state=absent
when: openshift_use_flannel | default(false) | bool
+ register: result
+ until: result | success
when: not is_atomic | bool
- shell: systemctl reset-failed
@@ -382,6 +386,8 @@
- origin-master
- pacemaker
- pcs
+ register: result
+ until: result | success
- shell: systemctl reset-failed
changed_when: False
@@ -497,6 +503,8 @@
with_items:
- etcd
- etcd3
+ register: result
+ until: result | success
- shell: systemctl reset-failed
changed_when: False
@@ -554,6 +562,8 @@
when: not is_atomic | bool and openshift_remove_all | default(True) | bool
with_items:
- haproxy
+ register: result
+ until: result | success
- shell: systemctl reset-failed
changed_when: False