feat: Create role

This commit is contained in:
2024-05-13 18:03:03 +02:00
parent ff3a9a8e69
commit d4c68a3ed3
11 changed files with 690 additions and 4 deletions

26
tasks/main.yml Normal file
View File

@@ -0,0 +1,26 @@
---
# 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