aboutsummaryrefslogtreecommitdiffstats
path: root/roles/vmm/tasks/facts.yml
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-12-07 15:41:02 +0000
committerRomain Gonçalves <me@rgoncalves.se>2021-12-07 20:24:51 +0000
commit9bd2c8c17a22c84da9a6ba6407c5b928d77fb469 (patch)
treee382576853ac2ebfeffcf3eda6e45f6ec9618656 /roles/vmm/tasks/facts.yml
parent12cf22b1a8d9ad23809ad8048119a6920cbb9675 (diff)
downloadrules-9bd2c8c17a22c84da9a6ba6407c5b928d77fb469.tar.gz
roles/vmm: Serve autoinstall configurations via httpd
Diffstat (limited to 'roles/vmm/tasks/facts.yml')
-rw-r--r--roles/vmm/tasks/facts.yml8
1 files changed, 4 insertions, 4 deletions
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 }}"
remember that computers suck.