diff options
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 |