mirror of https://github.com/easzlab/kubeasz.git
minor fix in 99.clean.yml
parent
333b56cea1
commit
f483d7ec66
16
99.clean.yml
16
99.clean.yml
|
@ -17,6 +17,8 @@
|
||||||
|
|
||||||
- name: umount kubelet filesystems
|
- name: umount kubelet filesystems
|
||||||
shell: "mount | grep '/var/lib/kubelet'| awk '{print $3}'|xargs umount"
|
shell: "mount | grep '/var/lib/kubelet'| awk '{print $3}'|xargs umount"
|
||||||
|
args:
|
||||||
|
warn: false
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: remove files and dirs of 'kube-node' nodes
|
- name: remove files and dirs of 'kube-node' nodes
|
||||||
|
@ -170,13 +172,17 @@
|
||||||
- etcd
|
- etcd
|
||||||
- lb
|
- lb
|
||||||
tasks:
|
tasks:
|
||||||
- name: stop and disable chrony
|
- name: stop and disable chrony in Ubuntu
|
||||||
service: name={{ item }} state=stopped enabled=no
|
service: name=chrony state=stopped enabled=no
|
||||||
with_items:
|
|
||||||
- chrony
|
|
||||||
- chronyd
|
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
tags: rm_ntp
|
tags: rm_ntp
|
||||||
|
when: ansible_distribution == "Ubuntu" or ansible_distribution == "Debian"
|
||||||
|
|
||||||
|
- name: stop and disable chronyd in CentOS
|
||||||
|
service: name=chronyd state=stopped enabled=no
|
||||||
|
ignore_errors: true
|
||||||
|
tags: rm_ntp
|
||||||
|
when: ansible_distribution == "CentOS"
|
||||||
|
|
||||||
- name: clean certs and keys
|
- name: clean certs and keys
|
||||||
file: name={{ item }} state=absent
|
file: name={{ item }} state=absent
|
||||||
|
|
Loading…
Reference in New Issue