From 3a5a7bfd55f38a447b60edae3a8b360fab34147f Mon Sep 17 00:00:00 2001 From: djpbessems Date: Fri, 22 Apr 2022 23:52:49 +0200 Subject: [PATCH] Fix loop_control label #2 --- playbook.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playbook.yml b/playbook.yml index 427728d..fd71fbd 100644 --- a/playbook.yml +++ b/playbook.yml @@ -55,6 +55,7 @@ delay: 100 until: job_poll.finished loop: "{{ job_init.results }}" + loop_control: "{{ { 'ip': item.item.ip } }}" - name: Parse results into dictionary ansible.builtin.set_fact: @@ -93,7 +94,7 @@ path: ~/.ssh/known_hosts loop: "{{ publickeys.results }}" loop_control: - label: "{{ 'name': item.item.name, 'ip': item.item.ip } }}" + label: "{{ { 'name': item.item.name, 'ip': item.item.ip } }}" - name: Provision Kubernetes hosts: k3s_ha