mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-06 19:21:12 -03:30
Merge pull request #2489 from woopstar/token-fix-1
Only copy tokens if tokens_list contains any
This commit is contained in:
@@ -55,4 +55,4 @@
|
||||
- name: Gen_tokens | Copy tokens on masters
|
||||
shell: "echo '{{ tokens_data.stdout|quote }}' | base64 -d | tar xz -C /"
|
||||
when: inventory_hostname in groups['kube-master'] and sync_tokens|default(false) and
|
||||
inventory_hostname != groups['kube-master'][0]
|
||||
inventory_hostname != groups['kube-master'][0] and tokens_data.stdout != ''
|
||||
|
||||
Reference in New Issue
Block a user