Ansible.K3sCluster/playbook.yml
djpbessems e2b2e78eb8
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Rebase to ISO;Add automatic name generation
2022-04-18 15:47:06 +02:00

25 lines
837 B
YAML

- hosts: localhost
gather_facts: false
vars_files:
- hypervisor.vcenter.yml
- nodes.yml
tasks:
- name: Clone multiple VMs from template
community.vmware.vmware_guest:
hostname: "{{ hv.hostname }}"
username: "{{ hv.username }}"
password: "{{ hv_password }}"
validate_certs: no
datacenter: "{{ hv.datacenter }}"
folder: "{{ hv.folder }}"
cluster: "{{ hv.cluster }}"
name: "{{ kubernetes.clustername }}_{{ lookup('community.general.random_string', length=5, upper=true, numbers=false, special=false) }}"
cdrom:
type: iso
iso_path: "[{{ hv.isodatastore }}] {{ item.iso_path }}"
# template: "{{ item.template }}"
state: poweredon
# customization_spec: "{{ customization_spec }}"
delegate_to: localhost
with_items: "{{ servers }}"