diff options
author | Andrew Butcher <abutcher@redhat.com> | 2017-06-06 15:51:29 -0400 |
---|---|---|
committer | Andrew Butcher <abutcher@redhat.com> | 2017-06-06 15:51:29 -0400 |
commit | 3c336375bf7b377a070250f684b5bc61687fc1e5 (patch) | |
tree | 88f0ab23dc8926a91e75e224b87983f25680e1c1 /playbooks | |
parent | 67da7e2e4699f9a226a436218723749ebc14ace1 (diff) | |
download | openshift-3c336375bf7b377a070250f684b5bc61687fc1e5.tar.gz openshift-3c336375bf7b377a070250f684b5bc61687fc1e5.tar.bz2 openshift-3c336375bf7b377a070250f684b5bc61687fc1e5.tar.xz openshift-3c336375bf7b377a070250f684b5bc61687fc1e5.zip |
Separate client config removal in uninstall s.t. ansible_ssh_user is removed from with_items.
Diffstat (limited to 'playbooks')
-rw-r--r-- | playbooks/adhoc/uninstall.yml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/playbooks/adhoc/uninstall.yml b/playbooks/adhoc/uninstall.yml index 1c8257162..97d835eae 100644 --- a/playbooks/adhoc/uninstall.yml +++ b/playbooks/adhoc/uninstall.yml @@ -393,10 +393,19 @@ - "{{ directories.results | default([]) }}" - files + - set_fact: + client_users: "{{ [ansible_ssh_user, 'root'] | unique }}" + + - name: Remove client kubeconfigs + file: + path: "~{{ item }}/.kube" + state: absent + with_items: + - "{{ client_users }}" + - name: Remove remaining files file: path={{ item }} state=absent with_items: - - "~{{ ansible_ssh_user }}/.kube" - /etc/ansible/facts.d/openshift.fact - /etc/atomic-enterprise - /etc/corosync @@ -421,7 +430,6 @@ - /etc/sysconfig/origin-master - /etc/sysconfig/origin-master-api - /etc/sysconfig/origin-master-controllers - - /root/.kube - /usr/share/openshift/examples - /var/lib/atomic-enterprise - /var/lib/openshift |