c12s-kubespray/roles/network_plugin/flannel/handlers/main.yml
Matthew Mosesohn 6027290bc4 Move docker systemd unit creation to docker role
Creating the unit using default settings early on
and then changing it during network_plugin section
leads to too many docker restarts and duplicated code.

Reversed Wants= dependence on docker.service so it does not
restart docker when reloading systemd

Consolidated all docker restart handlers.
2016-08-02 17:56:24 +03:00

10 lines
205 B
YAML

---
- name: delete default docker bridge
command: ip link delete docker0
ignore_errors: yes
notify: restart docker
- name: Flannel | reload kubelet
service:
name: kubelet
state: restarted