You've already forked role_proxmox
27 lines
694 B
YAML
27 lines
694 B
YAML
---
|
|
# tasks file for proxmox
|
|
|
|
# Node
|
|
- name: Import Proxmox VE configuration tasks
|
|
ansible.builtin.include_tasks:
|
|
file: node_configuration.yml
|
|
when: proxmox_instance_type | length == 0
|
|
|
|
# Instance: vm
|
|
- name: Import instance creation tasks
|
|
ansible.builtin.include_tasks:
|
|
file: instance_vm_template.yml
|
|
when: proxmox_instance_type == "vm"
|
|
|
|
- name: Import instance configuration tasks
|
|
ansible.builtin.include_tasks:
|
|
file: instance_vm_configuration.yml
|
|
when: proxmox_instance_type == "vm"
|
|
|
|
- name: Import HA configuration tasks
|
|
ansible.builtin.include_tasks:
|
|
file: instance_vm_ha.yml
|
|
when:
|
|
- proxmox_instance_type == "vm"
|
|
- proxmox_instance_ha | length > 0
|