summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/tasks
diff options
context:
space:
mode:
authorJustin Cook <jhcook@gmail.com>2016-10-11 10:08:29 +0100
committerJustin Cook <jhcook@gmail.com>2016-10-11 10:08:29 +0100
commit5bf011aee30cd566d1a1364e863287e05a639299 (patch)
treeebc5680f24e37a49c97fbf96bfc5ee0405eb99df /roles/openshift_node/tasks
parent69c6b0f3fc9d1908c35a661afcb2689fbf28207e (diff)
parent131bcdcd7ee5c3191c748beb7aad8d45c4477b98 (diff)
downloadopenshift-5bf011aee30cd566d1a1364e863287e05a639299.tar.gz
openshift-5bf011aee30cd566d1a1364e863287e05a639299.tar.bz2
openshift-5bf011aee30cd566d1a1364e863287e05a639299.tar.xz
openshift-5bf011aee30cd566d1a1364e863287e05a639299.zip
Merge branch 'master' of github.com:openshift/openshift-ansible into variable_with_no_default_2576
Diffstat (limited to 'roles/openshift_node/tasks')
-rw-r--r--roles/openshift_node/tasks/main.yml14
1 files changed, 3 insertions, 11 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml
index be07bd2d3..8e9c9f511 100644
--- a/roles/openshift_node/tasks/main.yml
+++ b/roles/openshift_node/tasks/main.yml
@@ -152,17 +152,9 @@
- name: Start and enable node
service: name={{ openshift.common.service_type }}-node enabled=yes state=started
register: node_start_result
- ignore_errors: yes
-
-- name: Wait 30 seconds for docker initialization whenever node has failed
- pause:
- seconds: 30
- when: node_start_result | failed
-
-- name: Start and enable node again
- service: name={{ openshift.common.service_type }}-node enabled=yes state=started
- register: node_start_result
- when: node_start_result | failed
+ until: not node_start_result | failed
+ retries: 1
+ delay: 30
- set_fact:
node_service_status_changed: "{{ node_start_result | changed }}"