You've already forked role_proxmox
feat: Create role
This commit is contained in:
26
tasks/main.yml
Normal file
26
tasks/main.yml
Normal 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
|
||||
Reference in New Issue
Block a user