Only copy tokens if tokens_list contains any

pull/2489/head
woopstar 2018-03-18 08:42:36 +01:00 committed by Andreas Kruger
parent 50e5f0d28b
commit b9a949820a
1 changed files with 1 additions and 1 deletions

View File

@ -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 != ''