2021-11-27 22:22:29 +01:00
|
|
|
#!/usr/bin/env ansible-playbook
|
2021-03-11 20:09:26 +01:00
|
|
|
---
|
|
|
|
- hosts: perceval.adm.auro.re
|
2021-11-27 19:14:39 +01:00
|
|
|
vars:
|
2021-11-28 17:27:41 +01:00
|
|
|
borg_server_backups_dir: /borg
|
2021-11-27 19:14:39 +01:00
|
|
|
update_motd:
|
|
|
|
borgbackup_server: >-
|
2021-12-15 16:34:21 +01:00
|
|
|
Les sauvegardes (borg) sont stockées dans /borg
|
2021-03-11 20:09:26 +01:00
|
|
|
roles:
|
|
|
|
- borgbackup_server
|
2021-11-27 19:14:39 +01:00
|
|
|
- update_motd
|
2021-03-11 23:56:07 +01:00
|
|
|
|
2021-11-28 17:27:41 +01:00
|
|
|
- hosts: all,!unifi,!unifi-*,!bdd,!caradoc.adm.auro.re
|
2021-11-27 20:04:05 +01:00
|
|
|
vars:
|
2021-11-28 17:27:41 +01:00
|
|
|
borg_server_host: 10.128.0.4
|
|
|
|
borg_encryption_passphrase: "{{ vault_borg_encryption_passphrase }}"
|
|
|
|
borg_backup_directories:
|
|
|
|
- /etc
|
|
|
|
- /var
|
|
|
|
borg_backup_exclude:
|
|
|
|
- /var/log
|
|
|
|
- /var/lib/docker
|
|
|
|
- /var/lib/lxcfs
|
2021-11-27 20:04:05 +01:00
|
|
|
update_motd:
|
|
|
|
borgbackup_client: >-
|
|
|
|
BorgBackup est déployé (/etc/borgmatic/config.yaml)
|
2021-03-11 23:56:07 +01:00
|
|
|
roles:
|
2021-11-28 17:27:41 +01:00
|
|
|
#- borgbackup_client
|
|
|
|
- update_motd
|
|
|
|
|
|
|
|
# On NAS, also backup NAS data
|
|
|
|
- hosts: caradoc.adm.auro.re
|
|
|
|
vars:
|
|
|
|
borg_server_host: 10.128.0.4
|
|
|
|
borg_encryption_passphrase: "{{ vault_borg_encryption_passphrase }}"
|
|
|
|
borg_backup_directories:
|
|
|
|
- /etc
|
|
|
|
- /var
|
|
|
|
- /data_nextcloud
|
|
|
|
- /data_gitea
|
|
|
|
- /data_mail
|
|
|
|
borg_backup_exclude:
|
|
|
|
- /var/log
|
|
|
|
- /var/lib/docker
|
|
|
|
- /var/lib/lxcfs
|
|
|
|
borg_keep_hourly: 6
|
|
|
|
update_motd:
|
|
|
|
borgbackup_client: >-
|
|
|
|
BorgBackup est déployé (/etc/borgmatic/config.yaml)
|
|
|
|
roles:
|
|
|
|
#- borgbackup_client
|
2021-11-27 20:04:05 +01:00
|
|
|
- update_motd
|
2021-11-28 10:49:45 +01:00
|
|
|
|
|
|
|
# On databases server, also backup databases
|
|
|
|
- hosts: bdd
|
|
|
|
vars:
|
2021-11-28 17:27:41 +01:00
|
|
|
borg_server_host: 10.128.0.4
|
|
|
|
borg_encryption_passphrase: "{{ vault_borg_encryption_passphrase }}"
|
|
|
|
borg_backup_directories:
|
|
|
|
- /etc
|
|
|
|
- /var
|
|
|
|
borg_backup_exclude:
|
|
|
|
- /var/log
|
|
|
|
- /var/lib/docker
|
|
|
|
- /var/lib/lxcfs
|
2021-11-28 10:49:45 +01:00
|
|
|
borg_postgresql_databases: true
|
|
|
|
update_motd:
|
|
|
|
borgbackup_client: >-
|
|
|
|
BorgBackup est déployé (/etc/borgmatic/config.yaml)
|
|
|
|
roles:
|
2021-11-28 17:27:41 +01:00
|
|
|
#- borgbackup_client
|
|
|
|
- update_motd
|
|
|
|
|
|
|
|
# On log server, also backup logs
|
|
|
|
- hosts: log.adm.auro.re
|
|
|
|
vars:
|
|
|
|
borg_server_host: 10.128.0.4
|
|
|
|
borg_encryption_passphrase: "{{ vault_borg_encryption_passphrase }}"
|
|
|
|
borg_backup_directories:
|
|
|
|
- /etc
|
|
|
|
- /var
|
|
|
|
borg_backup_exclude:
|
|
|
|
- /var/lib/docker
|
|
|
|
- /var/lib/lxcfs
|
|
|
|
update_motd:
|
|
|
|
borgbackup_client: >-
|
|
|
|
BorgBackup est déployé (/etc/borgmatic/config.yaml)
|
|
|
|
roles:
|
|
|
|
#- borgbackup_client
|
2021-11-28 10:49:45 +01:00
|
|
|
- update_motd
|
2021-03-11 20:09:26 +01:00
|
|
|
...
|