Add quotes around keys in dictionary
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2022-04-20 11:06:35 +02:00
parent ebc5ed45b1
commit ca5f1b5a8b

View File

@ -110,7 +110,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: