mirror of
https://github.com/roles-ansible/ansible_role_restic/
synced 2024-12-13 05:10:18 +01:00
e0f3f5c87c
improves the handling and differentiation of cronjobs and systemd timers. Rename the ``restic_create_cron`` variable to``restic_create_schedule``. Now new: ``restic_schedule_type: "systemd"``. RESOLVE #22
59 lines
1.2 KiB
YAML
59 lines
1.2 KiB
YAML
---
|
|
- name: Converge
|
|
hosts: all
|
|
roles:
|
|
- {role: ansible_role_restic}
|
|
pre_tasks:
|
|
- name: install bzip2
|
|
package:
|
|
name: bzip2
|
|
state: present
|
|
vars:
|
|
restic_download_path: ~/restic
|
|
restic_install_path: ~/restic
|
|
restic_repos:
|
|
local:
|
|
location: /backup
|
|
password: securepassword1
|
|
init: true
|
|
restic_backups:
|
|
- name: test
|
|
src: /home
|
|
repo: local
|
|
keep_last: 4
|
|
keep_tag: deployment
|
|
- name: test_stdin
|
|
repo: local
|
|
stdin: true
|
|
stdin_cmd: echo "this comes from stdin"
|
|
stdin_filename: stdin.txt
|
|
keep_last: 2
|
|
keep_hourly: 24
|
|
keep_daily: 7
|
|
keep_monthly: 12
|
|
keep_yearly: 5
|
|
|
|
- name: Converge with dict
|
|
hosts: all
|
|
roles:
|
|
- role: ansible_role_restic
|
|
pre_tasks:
|
|
- name: install bzip2
|
|
package:
|
|
name: bzip2
|
|
state: present
|
|
vars:
|
|
restic_download_path: ~/restic
|
|
restic_install_path: ~/restic
|
|
restic_repos:
|
|
local:
|
|
location: /backup
|
|
password: securepassword1
|
|
init: true
|
|
restic_backups:
|
|
dicttest:
|
|
name: dicttest
|
|
src: /home
|
|
repo: local
|
|
keep_last: 4
|
|
keep_tag: deployment
|