k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
597 B
28 lines
597 B
---
|
|
- name: restart calico-node
|
|
service: name=calico-node state=restarted
|
|
|
|
- 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
|
|
|
|
- name : reload systemd
|
|
shell: systemctl daemon-reload
|