Files
ansible_role_proxmox_provision/tasks/main.yml
Jose eb98128412
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 6s
Gitleaks Scan / gitleaks (push) Successful in 5s
Markdown Lint / markdown-lint (push) Successful in 6s
feat : Add default languages for APT translations
This commit adds default languages for APT translations by updating the `defaults/main.yml` file and adding new tasks in `tasks/apt.yml` to configure APT translations and force IPv4. Additionally, a task to configure apt has been added.
2026-02-15 08:20:04 +01:00

39 lines
1013 B
YAML

---
# ansible_role_proxmox_provision/tasks/main.yml
# Main tasks for role
# ===================
- 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
# ===================
- name: Configure apt
ansible.builtin.import_tasks: apt.yml
- 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
- name: Install api utilities
ansible.builtin.import_tasks: utilities.yml
- name: Remove the infamous subscription nag
ansible.builtin.import_tasks: subscription.yml
- name: Stop logs from quietly murdering the disk
ansible.builtin.import_tasks: logrotate.yml
- name: Install powertop, auto-tune, and make it persistent
ansible.builtin.import_tasks: powertop.yml