๐Ÿ“— Ansible playbooks and roles for building an idempotent, interconnected and scalable infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-playbooks/roles/workstation/tasks/win_backup.yml

37 lines
973 B

2 years ago
- name: setup backups
include_role:
name: backup
vars:
function: setup
backup_cfg:
password: "{{ backup_password }}"
tags: automated
max_size: "{{ backup_max_size | d('100M') }}"
dirs: "{{ backup_dirs | d(['C:\\Users']) }}"
filter:
- "$$RECYCLE.BIN"
- ".*/"
- "SeaDrive"
- "SeaFile"
- "seadrive_root"
- "Application Data"
- "AppData"
- "Local Settings"
- "System Volume Information"
- "*.exe"
- "*.rar"
- "*.zip"
- "*.tmp"
- "*.log"
- "*.dll"
- "*.dat"
- "*.sys"
- "*.log1"
- "Google/Chrome/*cache*"
- "Mozilla/Firefox/*cache*"
- "node_modules"
fs_snapshot: yes
interval: weekly
days_of_week: "{{ ['tuesday', 'thursday', 'saturday'] if ((2 | random(seed=host_fqdn)) == 1) else ['monday', 'wednesday', 'friday'] }}"
random_delay: PT10M