24 lines
637 B
YAML
Executable File
24 lines
637 B
YAML
Executable File
---
|
|
- name: Master playbook to create VM from a template
|
|
hosts: all
|
|
gather_facts: false
|
|
|
|
- name: Proxmox Clone VM Playbook
|
|
ansible.builtin.import_playbook: proxmox_clone_vm.yml
|
|
|
|
- name: Set cloud-init network
|
|
ansible.builtin.import_playbook: populate_cloud_init.yml
|
|
when: vm_os_distribution == "ubuntu"
|
|
|
|
- name: DNS Playbook
|
|
ansible.builtin.import_playbook: add_dns_entry.yml
|
|
|
|
- name: DHCP Playbook
|
|
ansible.builtin.import_playbook: add_dhcp_reservation.yml
|
|
|
|
- name: Start VM Playbook
|
|
ansible.builtin.import_playbook: proxmox_start_vm.yml
|
|
|
|
- name: Set Hostname Playbook
|
|
ansible.builtin.import_playbook: set_hostname.yml
|