2026-02-07 07:22:24 +01:00
|
|
|
---
|
2026-02-07 08:29:45 +01:00
|
|
|
# ansible_role_proxmox_provision/tasks/main.yml
|
2026-02-07 07:22:24 +01:00
|
|
|
# Main tasks for role
|
|
|
|
|
# ===================
|
|
|
|
|
|
2026-02-15 08:12:04 +01:00
|
|
|
- name: Ensure we are running on Proxmox
|
|
|
|
|
ansible.builtin.stat:
|
|
|
|
|
path: /usr/bin/pveversion
|
|
|
|
|
register: proxmox_check
|
|
|
|
|
|
|
|
|
|
- name: Stop if not Proxmox
|
|
|
|
|
ansible.builtin.fail:
|
|
|
|
|
msg: "This role must run on Proxmox VE nodes only."
|
|
|
|
|
when: not proxmox_check.stat.exists
|
|
|
|
|
|
|
|
|
|
# Other tasks
|
|
|
|
|
# ===================
|
2026-02-12 18:08:57 +01:00
|
|
|
|
2026-02-15 08:20:04 +01:00
|
|
|
- name: Configure apt
|
|
|
|
|
ansible.builtin.import_tasks: apt.yml
|
|
|
|
|
|
2026-02-07 08:29:45 +01:00
|
|
|
- name: Disable enterprise repo, enable no-subscription
|
|
|
|
|
ansible.builtin.import_tasks: repos.yml
|
|
|
|
|
|
|
|
|
|
- name: Disable swap or tune it
|
|
|
|
|
ansible.builtin.import_tasks: swap.yml
|
|
|
|
|
|
2026-02-15 08:12:04 +01:00
|
|
|
- name: Install api utilities
|
|
|
|
|
ansible.builtin.import_tasks: utilities.yml
|
|
|
|
|
|
|
|
|
|
- name: Remove the infamous subscription nag
|
|
|
|
|
ansible.builtin.import_tasks: subscription.yml
|
|
|
|
|
|
2026-02-12 17:56:27 +01:00
|
|
|
- name: Stop logs from quietly murdering the disk
|
2026-02-07 08:29:45 +01:00
|
|
|
ansible.builtin.import_tasks: logrotate.yml
|
|
|
|
|
|
2026-02-12 18:27:39 +01:00
|
|
|
- name: Install powertop, auto-tune, and make it persistent
|
2026-02-07 08:29:45 +01:00
|
|
|
ansible.builtin.import_tasks: powertop.yml
|
2026-02-15 08:30:32 +01:00
|
|
|
|
2026-02-15 08:37:46 +01:00
|
|
|
- name: Configure kernel panic auto-reboot
|
2026-02-15 08:30:32 +01:00
|
|
|
ansible.builtin.import_tasks: kernel.yml
|