diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-07-06 12:13:38 -0400 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2017-07-18 12:03:15 -0400 |
commit | b98dd4f1ac8582dbdee70128151f7e14c68c9b74 (patch) | |
tree | 9c8f9c3211dd29204ef6a90812dd713557e8e662 /roles | |
parent | 36a7c5bf5c69511020c516a33ca6b3e57aff485d (diff) | |
download | openshift-b98dd4f1ac8582dbdee70128151f7e14c68c9b74.tar.gz openshift-b98dd4f1ac8582dbdee70128151f7e14c68c9b74.tar.bz2 openshift-b98dd4f1ac8582dbdee70128151f7e14c68c9b74.tar.xz openshift-b98dd4f1ac8582dbdee70128151f7e14c68c9b74.zip |
Wrap docker stop in retries
Diffstat (limited to 'roles')
-rw-r--r-- | roles/openshift_node_upgrade/tasks/docker/upgrade.yml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/roles/openshift_node_upgrade/tasks/docker/upgrade.yml b/roles/openshift_node_upgrade/tasks/docker/upgrade.yml index 416cf605a..ebe87d6fd 100644 --- a/roles/openshift_node_upgrade/tasks/docker/upgrade.yml +++ b/roles/openshift_node_upgrade/tasks/docker/upgrade.yml @@ -26,7 +26,13 @@ - debug: var=docker_image_count.stdout when: docker_upgrade_nuke_images is defined and docker_upgrade_nuke_images | bool -- service: name=docker state=stopped +- service: + name: docker + state: stopped + register: l_openshift_node_upgrade_docker_stop_result + until: not l_openshift_node_upgrade_docker_stop_result | failed + retries: 3 + delay: 30 - name: Upgrade Docker package: name=docker{{ '-' + docker_version }} state=present |