Ansible.K3sCluster/playbook.yml
2022-04-18 12:58:57 +02:00

21 lines
567 B
YAML

- hosts: localhost
gather_facts: false
vars_files:
multiple_vms.yml
tasks:
- name: Clone multiple VMs from template
local_action:
module: vmware_guest
hostname: "{{ vcenter_hostname }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: no
folder: "{{ folder }}"
template: "{{ vmtemplate }}"
name: "{{ item.ip }}"
cluster: "{{ vmcluster }}"
datacenter: CloudLocal
state: poweredon
customization_spec: "{{ customization_spec }}"
with_items: "{{ servers }}"