blob: 8362afb1ce4b70ff54c8a5639a6ac39e30afa0aa (
plain) (
tree)
|
|
- 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")
| regex_replace(':(.):', ':0\1:')
}) ] }}
loop: "{{ vmm_vms }}"
- name: save variables
set_fact:
vmm_vms: "{{ vmm_vms_tmp }}"
|