Fix jinji syntax #2
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Danny Bessems 2022-04-20 10:10:50 +02:00
parent 2d075ad7ff
commit 4509756e0f
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@
- name: Retrieve token & reference new cluster
ansible.builtin.set_fact:
cluster: "{{ cluster | combine( { mastertoken: lookup('file', /var/lib/rancher/k3s/server/token) }, { apiurl: 'https://{{ cluster.virtualip | ansible.utils.ipaddr('address') }}:6443' } ) }}"
cluster: "{{ cluster | combine( { mastertoken: '{{ lookup('file', /var/lib/rancher/k3s/server/token) }}' }, { apiurl: 'https://{{ cluster.virtualip | ansible.utils.ipaddr('address') }}:6443' } ) }}"
when: cluster.mastertoken is not defined
- ansible.builtin.debug: