Split backup playbook into client and server
parent
8f65faa638
commit
73440ec9af
|
@ -1,15 +1,5 @@
|
|||
#!/usr/bin/env ansible-playbook
|
||||
---
|
||||
|
||||
- hosts: server
|
||||
vars:
|
||||
borg: '{{ glob_borg | default({}) | combine(loc_borg | default({})) }}'
|
||||
mirror: '{{ glob_mirror | default({}) | combine(loc_mirror | default({})) }}'
|
||||
roles:
|
||||
- borgbackup-client
|
||||
|
||||
- hosts: backups
|
||||
vars:
|
||||
borg: '{{ glob_borg | default({}) | combine(loc_borg | default({})) }}'
|
||||
roles:
|
||||
- borgbackup-server
|
||||
- import_playbook: borgbackup_client.yml
|
||||
- import_playbook: borgbackup_server.yml
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env ansible-playbook
|
||||
---
|
||||
|
||||
- hosts: server
|
||||
vars:
|
||||
borg: '{{ glob_borg | default({}) | combine(loc_borg | default({})) }}'
|
||||
mirror: '{{ glob_mirror | default({}) | combine(loc_mirror | default({})) }}'
|
||||
roles:
|
||||
- borgbackup-client
|
||||
|
||||
- hosts: backups
|
||||
vars:
|
||||
borg: '{{ glob_borg | default({}) | combine(loc_borg | default({})) }}'
|
||||
roles:
|
||||
- borgbackup-server
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env ansible-playbook
|
||||
---
|
||||
|
||||
- hosts: server
|
||||
vars:
|
||||
borg: '{{ glob_borg | default({}) | combine(loc_borg | default({})) }}'
|
||||
mirror: '{{ glob_mirror | default({}) | combine(loc_mirror | default({})) }}'
|
||||
roles:
|
||||
- borgbackup-client
|
||||
|
||||
- hosts: backups
|
||||
vars:
|
||||
borg: '{{ glob_borg | default({}) | combine(loc_borg | default({})) }}'
|
||||
roles:
|
||||
- borgbackup-server
|
|
@ -84,11 +84,5 @@
|
|||
retries: 3
|
||||
until: apt_result is succeeded
|
||||
|
||||
- hosts: server
|
||||
vars:
|
||||
borg: '{{ glob_borg | default({}) | combine(loc_borg | default({})) }}'
|
||||
mirror: '{{ glob_mirror | default({}) | combine(loc_mirror | default({})) }}'
|
||||
roles:
|
||||
- borgbackup-client
|
||||
|
||||
- import_playbook: borgbackup_client.yml
|
||||
- import_playbook: monitoring.yml
|
||||
|
|
Loading…
Reference in New Issue