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