Replace deprecated collection;Add cdrom controller/unit id's
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2022-04-18 22:26:52 +02:00
parent 851adb7ac6
commit a8bdc59d7a
2 changed files with 5 additions and 3 deletions

View File

@ -24,11 +24,13 @@
datastore: "{{ hv.datastore }}" datastore: "{{ hv.datastore }}"
networks: networks:
- name: "{{ hv.network }}" - name: "{{ hv.network }}"
ip: "{{ item.ip | ansible.netcommon.ipaddr('address') }}" ip: "{{ item.ip | ansible.utils.ipaddr('address') }}"
netmask: "{{ item.ip | ansible.netcommon.ipaddr('netmask') }}" netmask: "{{ item.ip | ansible.utils.ipaddr('netmask') }}"
cdrom: cdrom:
- type: iso - type: iso
iso_path: "[{{ hv.isodatastore }}] {{ item.iso_path }}" iso_path: "[{{ hv.isodatastore }}] {{ item.iso_path }}"
controller_number: 0
unit_number: 0
state: poweredon state: poweredon
# customization_spec: "{{ customization_spec }}" # customization_spec: "{{ customization_spec }}"
delegate_to: localhost delegate_to: localhost

View File

@ -1,4 +1,4 @@
collections: collections:
- ansible.netcommon - ansible.utils
- community.general - community.general
- community.vmware - community.vmware