From 13e9863ca969d10df18960797da5f6093a53ccb0 Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Sat, 9 Jul 2022 11:38:51 -0500 Subject: [PATCH] Disable Proxmox nag --- playbooks/platforms_proxmox-ve-7.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/playbooks/platforms_proxmox-ve-7.yml b/playbooks/platforms_proxmox-ve-7.yml index 81926ec..323f1f2 100755 --- a/playbooks/platforms_proxmox-ve-7.yml +++ b/playbooks/platforms_proxmox-ve-7.yml @@ -3,6 +3,17 @@ --- - hosts: platforms_proxmox-ve-7 gather_facts: no + tasks: + # https://tteck.github.io/Proxmox/ + - name: disable enterprise nag + ansible.builtin.copy: + content: | + DPkg::Post-Invoke { "dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ $? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/Active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi"; }; + dest: /etc/apt/apt.conf.d/no-nag-script + owner: root + group: root + mode: "0644" + tags: [ nag, common ] roles: - role: backup vars: