Simplify template
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Danny Bessems 2022-04-20 12:04:15 +02:00
parent b1213280e0
commit 690d66f275
1 changed files with 5 additions and 1 deletions

View File

@ -118,7 +118,11 @@
- 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