add support for output of tokens to a known location so kubectl can be configured
This commit is contained in:
parent
c7de2a524b
commit
b1ba070ba1
1 changed files with 8 additions and 0 deletions
|
@ -65,3 +65,11 @@
|
||||||
shell: chmod 0600 {{ kube_cert_dir}}/*key.pem
|
shell: chmod 0600 {{ kube_cert_dir}}/*key.pem
|
||||||
when: inventory_hostname in groups['kube-master']
|
when: inventory_hostname in groups['kube-master']
|
||||||
changed_when: false
|
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"
|
||||||
|
|
Loading…
Reference in a new issue