Переглянути джерело

Merge pull request #2336 from sdodson/etcd-uninstall

Fix etcd uninstall
Scott Dodson 8 роки тому
батько
коміт
eb3df4cc04
1 змінених файлів з 4 додано та 1 видалено
  1. 4 1
      playbooks/adhoc/uninstall.yml

+ 4 - 1
playbooks/adhoc/uninstall.yml

@@ -338,7 +338,10 @@
     - /etc/ansible/facts.d/openshift.fact
     - /etc/etcd
     - /etc/systemd/system/etcd_container.service
-    - /var/lib/etcd/*
+
+  - name: Remove etcd data
+    shell: rm -rf /var/lib/etcd/*
+    failed_when: false
 
 - hosts: lb
   become: yes