aboutsummaryrefslogblamecommitdiffstats
path: root/roles/vmm/tasks/facts.yml
blob: 58a6df5497776dd8338e3935b09d3516be40701d (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                     

                                                       



                                            
               
                       


                      
                                
- name: generate lladdr variable for virtual machines
  set_fact:
    vmm_vms_tmp: >
      {{ vmm_vms_tmp | default([]) + [ item | combine({
        "lladdr": item.name
          | hash("sha1")
          | truncate(12, True, "")
          | ansible.netcommon.hwaddr("unix")
        }) ] }}
  loop: "{{ vmm_vms }}"

- name: save variables
  set_fact:
    vmm_vms: "{{ vmm_vms_tmp }}"
remember that computers suck.