2016-01-30 23:04:47 +08:00
|
|
|
---
|
2019-04-19 21:01:54 +08:00
|
|
|
- name: reset_calico_cni
|
2016-01-30 23:04:47 +08:00
|
|
|
command: /bin/true
|
|
|
|
notify:
|
2019-04-19 21:01:54 +08:00
|
|
|
- delete 10-calico.conflist
|
|
|
|
- delete calico-node containers
|
2016-01-30 23:04:47 +08:00
|
|
|
|
2019-04-19 21:01:54 +08:00
|
|
|
- name: delete 10-calico.conflist
|
|
|
|
file:
|
|
|
|
path: /etc/calico/10-calico.conflist
|
|
|
|
state: absent
|
2016-01-30 23:04:47 +08:00
|
|
|
|
2019-04-19 21:01:54 +08:00
|
|
|
- name: delete calico-node containers
|
|
|
|
shell: "docker ps -af name=k8s_POD_calico-node* -q | xargs --no-run-if-empty docker rm -f"
|