#!/usr/bin/env ansible-playbook --- - hosts: perceval.adm.auro.re vars: borg_server_backups_dir: /borg update_motd: borgbackup_server: >- Les sauvegardes (borg) sont stockées dans {{ borg_server_backups_dir }}. roles: - borgbackup_server - update_motd - hosts: all,!unifi,!unifi-*,!bdd,!caradoc.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/log - /var/lib/docker - /var/lib/lxcfs update_motd: borgbackup_client: >- BorgBackup est déployé (/etc/borgmatic/config.yaml) roles: #- 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 - update_motd # On databases server, also backup databases - hosts: bdd vars: 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 borg_postgresql_databases: true update_motd: borgbackup_client: >- BorgBackup est déployé (/etc/borgmatic/config.yaml) roles: #- 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 - update_motd ...