added borgmatic play and vars

This commit is contained in:
2024-01-05 22:15:33 +01:00
parent 7b08e3d59a
commit 52e94c5521
3 changed files with 13 additions and 2 deletions

View File

@@ -96,10 +96,11 @@ WORDPRESS_DB_ROOT_PASS: '{{ vault_WORDPRESS_DB_ROOT_PASS }}'
borg_source_directories:
- /home/{{ system_user_name }}/docker
borgmatic_bin_dir: '/home/{{ system_user_name }}/bin'
borgmatic_bin_dir: '/home/{{ system_user_name }}/.local/bin'
#local_backup_path: '/backups/borgmatic'
borgbase_ssh_repo_url: '{{ vault_borgbase_ssh_repo_url }}'
ssh_backup_keyfile: '/root/.ssh/id_ed25519'
borgbase_hostname: "{{ borgbase_ssh_repo_url.split('@')[1].split('/')[0] }}"
ssh_backup_keyfile: '/home/simon/.ssh/id_ed25519'
borgmatic_passphrase: '{{ vault_borgmatic_passphrase }}'
backup_user_name: '{{ vault_backup_user_name }}'

View File

@@ -30,6 +30,9 @@ all:
stirling_pdf_hosts:
hosts:
10.11.12.35:
borgmatic_hosts:
hosts:
10.11.12.35:
opensourcepos_hosts:
hosts:
wordpress_hosts:

View File

@@ -20,6 +20,13 @@
- borgbackup
tags: borgbackup
- name: Configure Borgmatic Backup
hosts: all
become: false
roles:
- borgmatic
tags: borgmatic
- name: Update the system
hosts: all
become: true