Add tasks to export borgbase borg repo keys
This commit is contained in:
parent
dab13a2388
commit
96346896fa
1 changed files with 7 additions and 0 deletions
|
@ -37,6 +37,13 @@
|
|||
chdir: "{{ borg_key_export_path }}"
|
||||
loop: "{{ borg_repository }}"
|
||||
|
||||
- name: "Borg | Export repo key"
|
||||
ansible.builtin.command:
|
||||
cmd: "borg key export ssh://{{ borgbase_repo.repo_id }}@{{ borgbackup_ssh_host }}/./repo borgbase"
|
||||
chdir: "{{ borg_key_export_path }}"
|
||||
loop: "{{ borg_repository }}"
|
||||
when: borgbase is defined and borgbase
|
||||
|
||||
- name: "Borg | Save repo key to localhost"
|
||||
ansible.posix.synchronize:
|
||||
mode: pull
|
||||
|
|
Loading…
Reference in a new issue