Fix syntax
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2022-04-20 11:57:07 +02:00
parent 0bf389b333
commit b1213280e0

View File

@ -118,7 +118,7 @@
- name: Add to dictionary
ansible.builtin.set_fact:
cluster: "{{ cluster | combine( { 'mastertoken': {{ k3s_token.contents | b64decode }} }, { 'apiurl': {{ 'https://' + {{ cluster.virtualip | ansible.utils.ipaddr('address') + ':6443' }} } ) }}"
cluster: "{{ cluster | combine( { 'mastertoken': {{ k3s_token.contents | b64decode }} }, { 'apiurl': {{ 'https://' + ( cluster.virtualip | ansible.utils.ipaddr('address') ) + ':6443' }} } ) }}"
when: cluster.mastertoken is not defined