From b01f1e3d559faed9cbb1934c305540aef3985d40 Mon Sep 17 00:00:00 2001 From: Jose Date: Sun, 15 Feb 2026 08:12:04 +0100 Subject: [PATCH] =?UTF-8?q?chore=20=F0=9F=93=A6:=20Ensure=20Proxmox=20comp?= =?UTF-8?q?atibility=20by=20disabling=20enterprise=20repo,=20removing=20su?= =?UTF-8?q?bscription=20nag,=20and=20tuning=20swap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit ensures compatibility with Proxmox environments by making several configuration changes. It disables the enterprise repository to avoid licensing issues, removes the subscription nag message to streamline user experience, and optimizes the swap settings for better performance. --- tasks/main.yml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index d0af9f3..02fb3fc 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -3,18 +3,31 @@ # Main tasks for role # =================== -- name: Install api utilities - ansible.builtin.import_tasks: utilities.yml +- 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: 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: 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