kubeasz/roles/etcd/clean-etcd.yml

19 lines
406 B
YAML
Raw Normal View History

# WARNNING: clean 'etcd' nodes service & data
2019-02-14 14:13:13 +08:00
- 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:
- {{ ETCD_DATA_DIR }}
- {{ ETCD_WAL_DIR }}
2019-02-14 14:13:13 +08:00
- "/backup/k8s"
- "/etc/systemd/system/etcd.service"