Ansible.K3sCluster/playbook.yml
djpbessems 5ae9752f89
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Force python binary location
2022-04-18 14:34:15 +02:00

24 lines
678 B
YAML

- hosts: localhost
gather_facts: false
vars_files:
- hypervisor.vcenter.yml
- nodes.yml
vars:
ansible_python_interpreter: /bin/python3
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: "{{ item.ip }}"
template: "{{ item.template }}"
state: poweredon
# customization_spec: "{{ customization_spec }}"
delegate_to: localhost
with_items: "{{ servers }}"