Ansible.K3sCluster/playbook.yml

22 lines
625 B
YAML
Raw Normal View History

2022-04-18 10:58:57 +00:00
- hosts: localhost
gather_facts: false
vars_files:
- hypervisor.vcenter.yml
- nodes.yml
2022-04-18 10:58:57 +00:00
tasks:
- name: Clone multiple VMs from template
community.vmware.vmware_guest:
hostname: "{{ hv.hostname }}"
username: "{{ hv.username }}"
password: "{{ hv_password }}"
2022-04-18 10:58:57 +00:00
validate_certs: no
datacenter: "{{ hv.datacenter }}"
folder: "{{ hv.folder }}"
cluster: "{{ hv.cluster }}"
2022-04-18 10:58:57 +00:00
name: "{{ item.ip }}"
template: "{{ item.template }}"
2022-04-18 10:58:57 +00:00
state: poweredon
# customization_spec: "{{ customization_spec }}"
delegate_to: localhost
2022-04-18 10:58:57 +00:00
with_items: "{{ servers }}"