From a8bdc59d7af87c65d649c0cb68dd711363a65a42 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Mon, 18 Apr 2022 22:26:52 +0200 Subject: [PATCH] Replace deprecated collection;Add cdrom controller/unit id's --- playbook.yml | 6 ++++-- requirements.yml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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