2019-08-14 16:42:55 +02:00
|
|
|
---
|
|
|
|
- name: Converge
|
|
|
|
hosts: all
|
|
|
|
roles:
|
2022-10-06 15:06:46 +02:00
|
|
|
- {role: ../../}
|
2019-08-15 13:37:22 +02:00
|
|
|
pre_tasks:
|
2022-10-06 15:06:46 +02:00
|
|
|
- name: Install bzip2
|
|
|
|
ansible.builtin.package:
|
2019-08-15 13:37:22 +02:00
|
|
|
name: bzip2
|
|
|
|
state: present
|
2019-08-15 13:11:15 +02:00
|
|
|
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
|
2020-11-13 10:01:05 +01:00
|
|
|
|
|
|
|
- name: Converge with dict
|
|
|
|
hosts: all
|
|
|
|
roles:
|
2022-10-06 15:06:46 +02:00
|
|
|
- {role: ../../}
|
2020-11-13 10:01:05 +01:00
|
|
|
pre_tasks:
|
2022-10-06 15:06:46 +02:00
|
|
|
- name: Install bzip2
|
|
|
|
ansible.builtin.package:
|
2020-11-13 10:01:05 +01:00
|
|
|
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
|