This refactoring includes updating the README, changing the role name to focus on Proxmox VE, enhancing compatibility matrix, and refactoring default values for role variables. Handlers are updated to manage apt cache, restart pveproxy, and reload systemd. Role metadata is also updated for better Proxmox VE provisioning.
30 lines
829 B
YAML
30 lines
829 B
YAML
---
|
|
# ansible_role_proxmox_provision/tasks/main.yml
|
|
# Main tasks for role
|
|
# ===================
|
|
|
|
- name: Disable enterprise repo, enable no-subscription
|
|
ansible.builtin.import_tasks: repos.yml
|
|
|
|
- name: Remove the infamous subscription nag
|
|
ansible.builtin.import_tasks: subscription.yml
|
|
|
|
- name: Disable swap or tune it
|
|
ansible.builtin.import_tasks: swap.yml
|
|
|
|
- name: Stop logs from quietly murdering /
|
|
ansible.builtin.import_tasks: logrotate.yml
|
|
|
|
- name: Install, auto-tune, and make it persistent
|
|
ansible.builtin.import_tasks: powertop.yml
|
|
|
|
# Import backup tasks
|
|
- name: Import backup tasks
|
|
ansible.builtin.import_tasks: backup.yml
|
|
when: role_template_backup_enabled
|
|
|
|
# Import monitoring tasks
|
|
- name: Import monitoring tasks
|
|
ansible.builtin.import_tasks: monitoring.yml
|
|
when: role_template_monitoring_enabled
|