Verified Commit 13ad123a authored by Florian Pritz's avatar Florian Pritz
Browse files

Add playbook to fetch borg crypto keys

Signed-off-by: Florian Pritz's avatarFlorian Pritz <>
parent 00d8aaf8
- name: prepare local storage directory
- file: path="{{playbook_dir}}/../borg-keys/" state=directory
- name: fetch borg keys
hosts: borg-clients
- name: fetch borg key
command: "/usr/local/bin/borg key export :: /dev/stdout"
register: borg_key
- name: save borg key
local_action: copy content={{ borg_key.stdout }} dest="{{playbook_dir}}/../borg-keys/{{inventory_hostname}}"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment