16358e8aae
Changed Wants=docker.service to docker.socket Renamed handlers for reloading systemd to contain role in task name.
26 lines
543 B
YAML
26 lines
543 B
YAML
---
|
|
- name: delete default docker bridge
|
|
command: ip link delete docker0
|
|
ignore_errors: yes
|
|
notify: restart docker
|
|
|
|
- name: restart docker
|
|
command: /bin/true
|
|
notify:
|
|
- Flannel | reload systemd
|
|
- Flannel | reload docker
|
|
- Flannel | reload kubelet
|
|
|
|
- name : Flannel | reload systemd
|
|
shell: systemctl daemon-reload
|
|
when: ansible_service_mgr == "systemd"
|
|
|
|
- name: Flannel | reload docker
|
|
service:
|
|
name: docker
|
|
state: restarted
|
|
|
|
- name: Flannel | reload kubelet
|
|
service:
|
|
name: kubelet
|
|
state: restarted
|