diff --git a/playbook.yml b/playbook.yml index 7d0f765..b220f44 100644 --- a/playbook.yml +++ b/playbook.yml @@ -112,7 +112,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: