add support for output of tokens to a known location so kubectl can be configured

This commit is contained in:
Spencer Smith 2016-06-06 16:48:40 -07:00
parent c7de2a524b
commit b1ba070ba1

View file

@ -65,3 +65,11 @@
shell: chmod 0600 {{ kube_cert_dir}}/*key.pem
when: inventory_hostname in groups['kube-master']
changed_when: false
- name: Gen_certs | download certs for remote kubectl
fetch: src="{{ kube_cert_dir }}/{{ item }}" dest="output/tokens/{{ item }}" flat=yes
delegate_to: "{{ groups['kube-master'][0] }}"
with_items:
- "ca.pem"
- "admin.pem"
- "admin-key.pem"