- 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