2015-10-04 04:19:50 +08:00
|
|
|
---
|
2016-01-04 21:22:18 +08:00
|
|
|
- name : reload systemd
|
|
|
|
shell: systemctl daemon-reload
|
|
|
|
|
|
|
|
- name: restart systemd-calico-node
|
|
|
|
command: /bin/true
|
|
|
|
notify:
|
|
|
|
- reload systemd
|
|
|
|
- restart calico-node
|
|
|
|
|
2015-10-04 04:19:50 +08:00
|
|
|
- name: restart calico-node
|
2016-01-04 21:22:18 +08:00
|
|
|
service:
|
|
|
|
name: calico-node
|
|
|
|
state: restarted
|
2015-10-04 04:19:50 +08:00
|
|
|
|
|
|
|
- name: restart docker
|
|
|
|
service: name=docker state=restarted
|
|
|
|
|
|
|
|
- name: restart flannel
|
|
|
|
service: name=flannel state=restarted
|
|
|
|
notify:
|
|
|
|
- reload systemd
|
|
|
|
- stop docker
|
|
|
|
- delete docker0
|
|
|
|
- start docker
|
|
|
|
when: inventory_hostname in groups['kube-node']
|
|
|
|
|
|
|
|
- name: stop docker
|
|
|
|
service: name=docker state=stopped
|
|
|
|
|
|
|
|
- name: delete docker0
|
|
|
|
command: ip link delete docker0
|
|
|
|
ignore_errors: yes
|
|
|
|
|
|
|
|
- name: start docker
|
|
|
|
service: name=docker state=started
|