Add tasks to export borgbase borg repo keys

This commit is contained in:
phil 2023-04-09 10:44:51 +02:00
parent dab13a2388
commit 96346896fa

View file

@ -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