diff --git a/playbook.yml b/playbook.yml index 28b30c9..2b9a9c2 100644 --- a/playbook.yml +++ b/playbook.yml @@ -24,11 +24,13 @@ datastore: "{{ hv.datastore }}" networks: - name: "{{ hv.network }}" - ip: "{{ item.ip | ansible.netcommon.ipaddr('address') }}" - netmask: "{{ item.ip | ansible.netcommon.ipaddr('netmask') }}" + ip: "{{ item.ip | ansible.utils.ipaddr('address') }}" + netmask: "{{ item.ip | ansible.utils.ipaddr('netmask') }}" cdrom: - type: iso iso_path: "[{{ hv.isodatastore }}] {{ item.iso_path }}" + controller_number: 0 + unit_number: 0 state: poweredon # customization_spec: "{{ customization_spec }}" delegate_to: localhost diff --git a/requirements.yml b/requirements.yml index 0576d4c..321f7ba 100644 --- a/requirements.yml +++ b/requirements.yml @@ -1,4 +1,4 @@ collections: -- ansible.netcommon +- ansible.utils - community.general - community.vmware