mirror of https://github.com/easzlab/kubeasz.git
18 lines
377 B
YAML
18 lines
377 B
YAML
|
# WARNNING: clean 'etcd' nodes service & data
|
||
|
- hosts:
|
||
|
- etcd
|
||
|
tasks:
|
||
|
- name: stop and disable etcd service
|
||
|
service:
|
||
|
name: etcd
|
||
|
state: stopped
|
||
|
enabled: no
|
||
|
ignore_errors: true
|
||
|
|
||
|
- name: remove files and dirs
|
||
|
file: name={{ item }} state=absent
|
||
|
with_items:
|
||
|
- "/var/lib/etcd"
|
||
|
- "/backup/k8s"
|
||
|
- "/etc/systemd/system/etcd.service"
|