From ca5f1b5a8b3d6f647c94f3eba00ee9bfb787f5c2 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Wed, 20 Apr 2022 11:06:35 +0200 Subject: [PATCH] Add quotes around keys in dictionary --- playbook.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbook.yml b/playbook.yml index 4b14ae5..e1a7581 100644 --- a/playbook.yml +++ b/playbook.yml @@ -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: