diff --git a/roles/pbs/files/remove_nag.patch b/roles/pbs/files/remove_nag.patch new file mode 100644 index 0000000..5991bea --- /dev/null +++ b/roles/pbs/files/remove_nag.patch @@ -0,0 +1,13 @@ +--- /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js.orig 2021-05-27 00:16:17.230337938 +0200 ++++ /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js 2021-05-27 00:20:00.203317519 +0200 +@@ -468,8 +468,8 @@ + }, + success: function(response, opts) { + let res = response.result; +- if (res === null || res === undefined || !res || res +- .data.status.toLowerCase() !== 'active') { ++ if (false) { // res === null || res === undefined || !res || res ++ //.data.status.toLowerCase() !== 'active') { + Ext.Msg.show({ + title: gettext('No valid subscription'), + icon: Ext.Msg.WARNING, diff --git a/roles/pbs/tasks/install.yml b/roles/pbs/tasks/install.yml index 3df27e9..2d8f9ef 100644 --- a/roles/pbs/tasks/install.yml +++ b/roles/pbs/tasks/install.yml @@ -10,3 +10,8 @@ - name: Install dehydrated hook template: src=dehydrated_hook.sh.j2 dest=/etc/dehydrated/hooks_deploy_cert.d/pbs.sh mode=755 tags: pbs + +- name: Remove registration nag + patch: src=remove_nag.patch dest=/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js + ignore_errors: True + tags: pbs