Renamed vars_file;Ensure idempotency w/ random string
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
c55eddc5dc
commit
f2b4bfcd53
@ -2,7 +2,7 @@
|
|||||||
gather_facts: false
|
gather_facts: false
|
||||||
vars_files:
|
vars_files:
|
||||||
- hypervisor.vcenter.yml
|
- hypervisor.vcenter.yml
|
||||||
- nodes.yml
|
- cluster.k3s.yml
|
||||||
tasks:
|
tasks:
|
||||||
- name: Clone multiple VMs from template
|
- name: Clone multiple VMs from template
|
||||||
community.vmware.vmware_guest:
|
community.vmware.vmware_guest:
|
||||||
@ -13,7 +13,7 @@
|
|||||||
datacenter: "{{ hv.datacenter }}"
|
datacenter: "{{ hv.datacenter }}"
|
||||||
folder: "{{ hv.folder }}"
|
folder: "{{ hv.folder }}"
|
||||||
cluster: "{{ hv.cluster }}"
|
cluster: "{{ hv.cluster }}"
|
||||||
name: "{{ kubernetes.clustername | upper }}_{{ lookup('community.general.random_string', length=5, numbers=false, special=false) | upper }}"
|
name: "{{ kubernetes.clustername | upper }}_{{ community.general.random(seed=item.ip, length=5, numbers=false, special=false) | upper }}"
|
||||||
guest_id: "{{ item.guest_id }}"
|
guest_id: "{{ item.guest_id }}"
|
||||||
hardware:
|
hardware:
|
||||||
memory_mb: 8192
|
memory_mb: 8192
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
kubernetes:
|
kubernetes:
|
||||||
clustername: k3s-dev
|
clustername: k3s-dev
|
||||||
servers:
|
servers:
|
||||||
- ip: 192.168.11.121
|
- ip: 192.168.11.121/24
|
||||||
iso_path: ubuntu-20.04.1-live-server-amd64.iso
|
iso_path: ubuntu-20.04.1-live-server-amd64.iso
|
||||||
guest_id: ubuntu64Guest
|
guest_id: ubuntu64Guest
|
||||||
- ip: 192.168.11.122
|
- ip: 192.168.11.122/24
|
||||||
iso_path: ubuntu-20.04.1-live-server-amd64.iso
|
iso_path: ubuntu-20.04.1-live-server-amd64.iso
|
||||||
guest_id: ubuntu64Guest
|
guest_id: ubuntu64Guest
|
||||||
- ip: 192.168.11.123
|
- ip: 192.168.11.123/24
|
||||||
iso_path: ubuntu-20.04.1-live-server-amd64.iso
|
iso_path: ubuntu-20.04.1-live-server-amd64.iso
|
||||||
guest_id: ubuntu64Guest
|
guest_id: ubuntu64Guest
|
Loading…
Reference in New Issue
Block a user