Changes according to code review
This commit is contained in:
@ -8,7 +8,9 @@
|
|||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- name: reset | remove services
|
- name: reset | remove services
|
||||||
file: path="/etc/systemd/system/{{item}}" state=absent
|
file:
|
||||||
|
path: "/etc/systemd/system/{{ item }}.service"
|
||||||
|
state: absent
|
||||||
with_items:
|
with_items:
|
||||||
- kubelet
|
- kubelet
|
||||||
- etcd
|
- etcd
|
||||||
@ -27,7 +29,7 @@
|
|||||||
|
|
||||||
- name: reset | unmount kubelet dirs
|
- name: reset | unmount kubelet dirs
|
||||||
command: umount {{item}}
|
command: umount {{item}}
|
||||||
with_items: '{{mounted_dirs.stdout_lines}}'
|
with_items: '{{ mounted_dirs.stdout_lines | reverse }}'
|
||||||
|
|
||||||
- name: reset | delete some files and directories
|
- name: reset | delete some files and directories
|
||||||
file: path={{ item }} state=absent
|
file: path={{ item }} state=absent
|
||||||
@ -35,4 +37,11 @@
|
|||||||
- /etc/kubernetes/
|
- /etc/kubernetes/
|
||||||
- /var/lib/kubelet
|
- /var/lib/kubelet
|
||||||
- /var/lib/etcd
|
- /var/lib/etcd
|
||||||
|
- /etc/ssl/etcd
|
||||||
|
- /var/log/calico
|
||||||
|
- /etc/cni
|
||||||
|
- /etc/nginx
|
||||||
|
- /etc/dnsmasq.d
|
||||||
|
- /etc/etcd.env
|
||||||
|
- /etc/calico
|
||||||
|
- /opt/cni
|
||||||
|
Reference in New Issue
Block a user