blob: c7b453b41fd75f72891f7377ba73293ceae2709c (
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')
}) ] }}
loop: "{{ vmm_vms }}"
- name: save variables
set_fact:
vmm_vms: "{{ vmm_vms_tmp }}"
|