diff --git a/playbook.yml b/playbook.yml index 09ae343..256078b 100644 --- a/playbook.yml +++ b/playbook.yml @@ -27,8 +27,8 @@ guestinfo.rootpw: "{{ root_password }}" guestinfo.rootsshkey: "foo" guestinfo.ntpserver: 127.0.0.1 - guestinfo.ipaddress: "{{ item.ip | ansible.utils.ipaddr('address') - guestinfo.prefixlength: "" + guestinfo.ipaddress: "{{ item.ip | ansible.utils.ipaddr('address') }}" + guestinfo.prefixlength: "{{ (item.ip | split('/'))[-1] }}" guestinfo.dnsserver: 127.0.0.1 guestinfo.gateway: 127.0.0.1 # customization_spec: "{{ customization_spec }}"