aboutsummaryrefslogtreecommitdiffstats
path: root/tasks/client_create_scripts_each.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/client_create_scripts_each.yml')
-rw-r--r--tasks/client_create_scripts_each.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/tasks/client_create_scripts_each.yml b/tasks/client_create_scripts_each.yml
index 6c0615f..a9c5c31 100644
--- a/tasks/client_create_scripts_each.yml
+++ b/tasks/client_create_scripts_each.yml
@@ -24,6 +24,9 @@
marker: "## {mark} ANSIBLE MANAGED BLOCK for {{ borg_server_host_url }}/{{ borg_repo_name }}"
block: |
export BORG_PASSPHRASE={{ borg_passphrase | quote }}
+ {% if borg_ssh_key_per_repo %}
+ export BORG_RSH="ssh -i {{ borg_ssh_key_path }}"
+ {% endif %}
borg create -C {{ borg_compression }} \
borg@{{ borg_server_host_url }}:{{ borg_server_user_home }}/{{ borg_repo_name }}::{{ borg_backup_name_format }} \
{{ borg_included_dirs | map('quote') | join(' ') }} \