diff options
Diffstat (limited to 'roles/docker/handlers')
-rw-r--r-- | roles/docker/handlers/main.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/docker/handlers/main.yml b/roles/docker/handlers/main.yml new file mode 100644 index 000000000..866ed0452 --- /dev/null +++ b/roles/docker/handlers/main.yml @@ -0,0 +1,18 @@ +--- + +- name: restart docker + systemd: + name: "{{ openshift.docker.service_name }}" + state: restarted + daemon_reload: yes + register: r_docker_restart_docker_result + until: not r_docker_restart_docker_result | failed + retries: 3 + delay: 30 + when: not docker_service_status_changed | default(false) | bool + +- name: restart udev + systemd: + name: systemd-udevd + state: restarted + daemon_reload: yes |