From 9776d873e974a76a19fe824e5899eb500143767f Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Wed, 23 Jul 2025 12:27:57 +0200 Subject: [PATCH] added shell command to disable proxmox subscription reminder popup --- tasks/debian-to-pve/post-pve-installation.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/debian-to-pve/post-pve-installation.yml b/tasks/debian-to-pve/post-pve-installation.yml index a693f3d..e067038 100644 --- a/tasks/debian-to-pve/post-pve-installation.yml +++ b/tasks/debian-to-pve/post-pve-installation.yml @@ -8,3 +8,6 @@ - name: Ensure grub gets updated ansible.builtin.shell: cmd: update-grub +- name: Ensure the built-in popup reminding to buy the subscription is disabled + ansible.builtin.shell: + cmd: echo "DPkg::Post-Invoke { \"if [ -s /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js ] && ! grep -q -F 'NoMoreNagging' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; then echo 'Removing subscription nag from UI...'; sed -i '/data\.status/{s/\!//;s/active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; fi\" };" > /etc/apt/apt.conf.d/no-nag-script