2015-10-04 04:19:50 +08:00
|
|
|
---
|
2016-01-26 04:09:42 +08:00
|
|
|
- name: restart docker
|
2016-01-09 17:45:50 +08:00
|
|
|
command: /bin/true
|
2015-10-04 04:19:50 +08:00
|
|
|
notify:
|
|
|
|
- reload systemd
|
2016-01-26 04:09:42 +08:00
|
|
|
- reload docker
|
|
|
|
- reload kubelet
|
2015-10-04 04:19:50 +08:00
|
|
|
|
2016-01-09 17:45:50 +08:00
|
|
|
- name: delete default docker bridge
|
2015-10-04 04:19:50 +08:00
|
|
|
command: ip link delete docker0
|
|
|
|
ignore_errors: yes
|
2016-01-09 17:45:50 +08:00
|
|
|
notify: restart docker
|
2015-10-04 04:19:50 +08:00
|
|
|
|
2016-01-09 17:45:50 +08:00
|
|
|
- name : reload systemd
|
|
|
|
shell: systemctl daemon-reload
|
2016-02-13 18:17:20 +08:00
|
|
|
when: ansible_service_mgr == "systemd"
|
2016-01-09 17:45:50 +08:00
|
|
|
|
2016-01-26 04:09:42 +08:00
|
|
|
- name: reload docker
|
2016-01-09 17:45:50 +08:00
|
|
|
service:
|
|
|
|
name: docker
|
|
|
|
state: restarted
|
2016-01-19 20:47:07 +08:00
|
|
|
|
2016-01-26 04:09:42 +08:00
|
|
|
- name: reload kubelet
|
2016-01-19 20:47:07 +08:00
|
|
|
service:
|
|
|
|
name: kubelet
|
|
|
|
state: restarted
|