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: