From 9bd2c8c17a22c84da9a6ba6407c5b928d77fb469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Tue, 7 Dec 2021 15:41:02 +0000 Subject: roles/vmm: Serve autoinstall configurations via httpd --- roles/vmm/tasks/facts.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'roles/vmm/tasks/facts.yml') diff --git a/roles/vmm/tasks/facts.yml b/roles/vmm/tasks/facts.yml index 7cf4f0c..c7b453b 100644 --- a/roles/vmm/tasks/facts.yml +++ b/roles/vmm/tasks/facts.yml @@ -1,14 +1,14 @@ - name: generate lladdr variable for virtual machines set_fact: - tmp_vms: > - {{ tmp_vms | default([]) + [ item | combine({ + vmm_vms_tmp: > + {{ vmm_vms_tmp | default([]) + [ item | combine({ 'lladdr': item.name | hash('sha1') | truncate(12, True, '') | ansible.netcommon.hwaddr('unix') }) ] }} - loop: "{{ __vms }}" + loop: "{{ vmm_vms }}" - name: save variables set_fact: - __vms: "{{ tmp_vms }}" + vmm_vms: "{{ vmm_vms_tmp }}" -- cgit v1.2.3