diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2022-11-17 09:48:45 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2022-11-17 09:49:06 +0100 |
commit | 6fbf9f40f88f51450cc2d2dbbc46ca5c70ffbad0 (patch) | |
tree | 2846954ec3725f33cdbc1c33722f8ef7c4d8ad13 /ansible/roles/borg-job | |
parent | 70f235f0ec9937fa41b80fe2d8c5355649c24ea9 (diff) | |
download | infra-6fbf9f40f88f51450cc2d2dbbc46ca5c70ffbad0.tar.gz infra-6fbf9f40f88f51450cc2d2dbbc46ca5c70ffbad0.tar.bz2 infra-6fbf9f40f88f51450cc2d2dbbc46ca5c70ffbad0.tar.xz infra-6fbf9f40f88f51450cc2d2dbbc46ca5c70ffbad0.zip |
borg
Diffstat (limited to 'ansible/roles/borg-job')
-rw-r--r-- | ansible/roles/borg-job/tasks/main.yml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ansible/roles/borg-job/tasks/main.yml b/ansible/roles/borg-job/tasks/main.yml index 10076d6..8e562bd 100644 --- a/ansible/roles/borg-job/tasks/main.yml +++ b/ansible/roles/borg-job/tasks/main.yml @@ -14,9 +14,12 @@ copy: dest: "/etc/tergum/jobs/{{ borg_job__name }}/env" content: | - BORG_REPO={{ borg_job__username }}@{{ borg_job__target }}:{{ ansible_hostname }}/{{ borg_job__name }} - BORG_RSH=ssh -i /etc/tergum/ssh-key + BORG_REPO={{ borg_job__username }}@{{ borg_job__target }}:borg/{{ ansible_hostname }}/{{ borg_job__name }} + BORG_RSH=ssh -i /etc/tergum/ssh-key -o GlobalKnownHostsFile=/etc/tergum/ssh_known_hosts BORG_PASSPHRASE={{ borg__passphrases[ansible_hostname][borg_job__name] }} + {% if borg_job__borg_remote_path is defined %} + BORG_REMOTE_PATH={{ borg_job__borg_remote_path }} + {% endif %} # BORG_KEYS_DIR # BORG_SECURITY_DIR |