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 }}"
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

View File

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