2021-11-11 13:54:11 -06:00
|
|
|
#!/usr/bin/env ansible-playbook
|
|
|
|
# vim:ft=ansible:
|
|
|
|
---
|
|
|
|
- hosts: platforms_proxmox-ve-7
|
2022-02-15 15:19:34 -06:00
|
|
|
gather_facts: no
|
2022-07-09 11:38:51 -05:00
|
|
|
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 ]
|
2021-11-11 13:54:11 -06:00
|
|
|
roles:
|
|
|
|
- role: backup
|
|
|
|
vars:
|
|
|
|
backup_s3backup_list_extra:
|
2022-06-18 18:36:02 -05:00
|
|
|
- /data
|
2021-11-18 16:51:32 -06:00
|
|
|
- /etc/kernel
|
|
|
|
- /etc/modprobe.d
|
|
|
|
- /etc/modules
|
2021-11-11 13:54:11 -06:00
|
|
|
- /etc/pve
|
|
|
|
backup_time: "Mon *-*-* 02:00:00"
|
|
|
|
tags: [ backup, common ]
|