From ae49bffb2dac394259ac99359aa0b9b33a21aa48 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Fri, 22 Apr 2022 23:31:35 +0200 Subject: [PATCH] Finetune loop_control --- playbook.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/playbook.yml b/playbook.yml index b29d5ae..d192718 100644 --- a/playbook.yml +++ b/playbook.yml @@ -82,6 +82,8 @@ cmd: "ssh-keyscan -t rsa {{ item.ip }}" register: publickeys loop: "{{ nodes }}" + loop_control: + label: "{{ { 'name': item.name, 'ip': item.ip } }}" - name: Store public keys ansible.builtin.known_hosts: @@ -91,7 +93,7 @@ path: ~/.ssh/known_hosts loop: "{{ publickeys.results }}" loop_control: - label: "{{ { 'name': item.item.name, 'ip': item.item.ip } }}" + label: "{{ { 'name': item.name, 'ip': item.ip } }}" - name: Provision Kubernetes hosts: k3s_ha