Skip to content
Snippets Groups Projects
Unverified Commit 9949782e authored by Chad Swenson's avatar Chad Swenson Committed by GitHub
Browse files

Merge pull request #2489 from woopstar/token-fix-1

Only copy tokens if tokens_list contains any
parents bbb6e7b3 b9a94982
Branches
Tags
No related merge requests found
......@@ -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 != ''
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment