Disable Proxmox nag

This commit is contained in:
Salt 2022-07-09 11:38:51 -05:00
parent a217ee6498
commit 13e9863ca9

View File

@ -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: