2026-02-07 08:29:45 +01:00
|
|
|
---
|
2026-02-09 18:20:19 +01:00
|
|
|
- name: subscription | Ensure /usr/local/bin exists
|
2026-02-07 18:32:40 +01:00
|
|
|
ansible.builtin.file:
|
2026-02-08 20:03:53 +01:00
|
|
|
path: /usr/local/bin
|
2026-02-07 18:32:40 +01:00
|
|
|
state: directory
|
|
|
|
|
owner: root
|
|
|
|
|
group: root
|
|
|
|
|
mode: "0755"
|
|
|
|
|
|
2026-02-08 20:03:53 +01:00
|
|
|
- name: subscription | Check for legacy proxmoxlib.js
|
|
|
|
|
ansible.builtin.stat:
|
|
|
|
|
path: /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
|
|
|
|
|
register: proxmoxlib_js
|
|
|
|
|
|
2026-02-09 18:12:13 +01:00
|
|
|
- name: subscription | Install pve-remove-nag script
|
2026-02-08 20:03:53 +01:00
|
|
|
ansible.builtin.copy:
|
2026-02-09 18:12:13 +01:00
|
|
|
src: pve-remove-nag.sh
|
2026-02-08 20:03:53 +01:00
|
|
|
dest: /usr/local/bin/pve-remove-nag.sh
|
|
|
|
|
owner: root
|
|
|
|
|
group: root
|
|
|
|
|
mode: "0755"
|
|
|
|
|
when: proxmoxlib_js.stat.exists
|
|
|
|
|
|
2026-02-09 18:20:19 +01:00
|
|
|
- name: subscription | Install APT post-invoke hook for nag removal
|
2026-02-08 20:03:53 +01:00
|
|
|
ansible.builtin.copy:
|
|
|
|
|
dest: /etc/apt/apt.conf.d/no-nag-script
|
|
|
|
|
owner: root
|
|
|
|
|
group: root
|
|
|
|
|
mode: "0644"
|
|
|
|
|
content: |
|
|
|
|
|
DPkg::Post-Invoke { "/usr/local/bin/pve-remove-nag.sh"; };
|
|
|
|
|
|
2026-02-07 18:32:40 +01:00
|
|
|
############################
|
|
|
|
|
# Legacy proxmoxlib.js
|
|
|
|
|
############################
|
|
|
|
|
|
2026-02-07 09:24:46 +01:00
|
|
|
- name: subscription | Check for legacy proxmoxlib.js
|
2026-02-07 09:27:07 +01:00
|
|
|
ansible.builtin.stat:
|
2026-02-07 09:24:46 +01:00
|
|
|
path: /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
|
|
|
|
|
register: proxmoxlib_js
|
|
|
|
|
|
2026-02-08 07:12:21 +01:00
|
|
|
- name: subscription | Trigger legacy nag patch if needed
|
|
|
|
|
ansible.builtin.meta: flush_handlers
|
2026-02-07 18:32:40 +01:00
|
|
|
when:
|
|
|
|
|
- proxmoxlib_js.stat.exists
|
2026-02-08 07:07:23 +01:00
|
|
|
- proxmoxlib_js_checksum_stored.content is not defined
|
|
|
|
|
or proxmoxlib_js.stat.checksum
|
|
|
|
|
!= (proxmoxlib_js_checksum_stored.content | b64decode | trim)
|
2026-02-08 07:12:21 +01:00
|
|
|
notify: Ppatch legacy proxmoxlib.js
|