diff options
Diffstat (limited to 'roles/flannel/handlers')
-rw-r--r-- | roles/flannel/handlers/main.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/roles/flannel/handlers/main.yml b/roles/flannel/handlers/main.yml new file mode 100644 index 000000000..889069485 --- /dev/null +++ b/roles/flannel/handlers/main.yml @@ -0,0 +1,23 @@ +--- +- name: restart flanneld + become: yes + systemd: name=flanneld state=restarted + +- name: restart docker + become: yes + systemd: + name: "{{ openshift.docker.service_name }}" + state: restarted + register: l_docker_restart_docker_in_flannel_result + until: not l_docker_restart_docker_in_flannel_result | failed + retries: 3 + delay: 30 + +- name: restart node + systemd: + name: "{{ openshift.common.service_type }}-node" + state: restarted + register: l_restart_node_result + until: not l_restart_node_result | failed + retries: 3 + delay: 30 |