From 9643c2c1e3572de56d84be64bbeb3c7b1fdceef8 Mon Sep 17 00:00:00 2001 From: Brad Beam Date: Mon, 11 Dec 2017 06:49:21 -0600 Subject: [PATCH] Fixes to reset (#2046) - adding additional directories to cleanup (rkt/vault) - targeting kubespray ansible groups instead of all --- reset.yml | 3 +++ roles/reset/tasks/main.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/reset.yml b/reset.yml index 859ca6264..959487b8a 100644 --- a/reset.yml +++ b/reset.yml @@ -1,6 +1,9 @@ --- - hosts: all + gather_facts: true + +- hosts: etcd:k8s-cluster:vault:calico-rr vars_prompt: name: "reset_confirmation" prompt: "Are you sure you want to reset cluster state? Type 'yes' to reset your cluster." diff --git a/roles/reset/tasks/main.yml b/roles/reset/tasks/main.yml index e3894be8c..a9d4a33cb 100644 --- a/roles/reset/tasks/main.yml +++ b/roles/reset/tasks/main.yml @@ -124,6 +124,9 @@ - "{{ bin_dir }}/helm" - "{{ bin_dir }}/calicoctl" - "{{ bin_dir }}/weave" + - /var/lib/rkt + - /etc/vault + ignore_errors: yes tags: - files