ansible/playbooks/platforms_proxmox-ve-7.yml

28 lines
926 B
YAML
Raw Normal View History

#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- hosts: platforms_proxmox-ve-7
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 ]
roles:
- role: backup
vars:
backup_s3backup_list_extra:
2022-06-18 18:36:02 -05:00
- /data
- /etc/kernel
- /etc/modprobe.d
- /etc/modules
- /etc/pve
backup_time: "Mon *-*-* 02:00:00"
tags: [ backup, common ]