Browse Source

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

Only copy tokens if tokens_list contains any
pull/2333/head
Chad Swenson 6 years ago
committed by GitHub
parent
commit
9949782e96
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. 2
      roles/kubernetes/secrets/tasks/gen_tokens.yml

2
roles/kubernetes/secrets/tasks/gen_tokens.yml

@ -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 != ''
Loading…
Cancel
Save