homeserver/roles/ironicbadger.proxmox-nag-removal/tasks/remove-nag.yml

14 lines
475 B
YAML
Raw Normal View History

---
- name: backup up original file
copy:
remote_src: True
src: /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
dest: "/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js.bak-{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
- name: modify line which performs license check
replace:
path: /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
regexp: "data.status \\!== \\'Active\\'"
replace: "false"
notify: restart pveproxy