Files
ansible/tasks/debian-to-pve/post-pve-installation.yml

14 lines
757 B
YAML

---
- name: Ensure the Debian stock kernel and os-prober are uninstalled
ansible.builtin.apt:
name:
- linux-image-*
- os-prober
state: absent
- 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