From c55eddc5dc62021599ef9b12155fff2d968b865f Mon Sep 17 00:00:00 2001 From: djpbessems Date: Mon, 18 Apr 2022 19:45:41 +0200 Subject: [PATCH] Adjust VM name;Add network;Refactor cd rom --- playbook.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/playbook.yml b/playbook.yml index 0e4a54b..42236d2 100644 --- a/playbook.yml +++ b/playbook.yml @@ -13,7 +13,7 @@ datacenter: "{{ hv.datacenter }}" folder: "{{ hv.folder }}" cluster: "{{ hv.cluster }}" - name: "{{ kubernetes.clustername }}_{{ lookup('community.general.random_string', length=5, numbers=false, special=false) }}" + name: "{{ kubernetes.clustername | upper }}_{{ lookup('community.general.random_string', length=5, numbers=false, special=false) | upper }}" guest_id: "{{ item.guest_id }}" hardware: memory_mb: 8192 @@ -22,10 +22,12 @@ - size_gb: 50 type: thin datastore: "{{ hv.datastore }}" + networks: + - name: "{{ hv.network }}" + ip: "{{ item.ip }}" cdrom: - type: iso + - type: iso iso_path: "[{{ hv.isodatastore }}] {{ item.iso_path }}" - # template: "{{ item.template }}" state: poweredon # customization_spec: "{{ customization_spec }}" delegate_to: localhost