Clear admin kubeconfig when rotating certs (#1772)

* Clear admin kubeconfig when rotating certs

* Update main.yml
This commit is contained in:
Matthew Mosesohn
2017-10-12 09:55:46 +01:00
committed by GitHub
parent 27ed73e3e3
commit ee83e874a8
3 changed files with 25 additions and 1 deletions

View File

@@ -28,6 +28,9 @@
template:
src: admin.conf.j2
dest: "{{ kube_config_dir }}/admin.conf"
owner: root
group: "{{ kube_cert_group }}"
mode: 0640
when: not kubeadm_enabled|d(false)|bool
- name: Create kube config dir
@@ -50,7 +53,6 @@
dest: "{{ artifacts_dir }}/admin.conf"
flat: yes
validate_checksum: no
become: no
run_once: yes
when: kubeconfig_localhost|default(false)