c12s-kubespray/roles/kubernetes/secrets/handlers/main.yml
Matthew Mosesohn ee83e874a8 Clear admin kubeconfig when rotating certs (#1772)
* Clear admin kubeconfig when rotating certs

* Update main.yml
2017-10-12 09:55:46 +01:00

15 lines
300 B
YAML

---
- name: set secret_changed
command: /bin/true
notify:
- set secret_changed to true
- clear kubeconfig for root user
- name: set secret_changed to true
set_fact:
secret_changed: true
- name: clear kubeconfig for root user
file:
path: /root/.kube/config
state: absent