forked from inofix/common-playbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-backup.yml
70 lines (61 loc) · 1.52 KB
/
install-backup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#* This playbook wrapps the apt (and others maybe in the future..) module
#* to install software for backup and restore. See the setup-backup playbook
#* for a complete setup.
#* Use '-a' to pass parameters to ansible (as '-e').
#* No arguments are mandatory.
- hosts: app.backupninja
become: true
roles:
- install-backupninja
vars:
- yapkg__names:
- 'backupninja'
- hosts: app.borg
become: true
roles:
- inofix.yapkg
vars:
- yapkg__task_group_name: 'backup software: borg'
- yapkg__names:
- 'borgbackup'
- hosts: app.duplicity, &debian_bullseye
become: true
roles:
- inofix.yapkg
vars:
- yapkg__task_group_name: 'backup software: duplicity'
- yapkg__names:
- 'python3-paramiko'
- 'duplicity'
- hosts: app.duplicity, &debian_jessie
become: true
roles:
- inofix.yapkg
vars:
- yapkg__task_group_name: 'backup software: duplicity'
- yapkg__names:
- 'python-paramiko'
- 'duplicity'
- hosts: app.rdiff-backup
become: true
roles:
- inofix.yapkg
vars:
- yapkg__task_group_name: 'backup software: rdiff-backup'
- yapkg__names:
- 'rdiff-backup'
- hosts: app.sshfs
become: true
roles:
- inofix.yapkg
vars:
- yapkg__task_group_name: 'remote mounts: sshfs'
- yapkg__names:
- 'sshfs'
# not enabling this yet, as it only tracks 'today'
# it is only useful for human communication and needs
# to be combined with something smarter as
# dpkg --get-selections
#- hosts: all
# roles:
# - track-packages