[borgbackup_client] Add 'user:' in authorized_key

This commit is contained in:
jeltz 2021-03-14 13:18:30 +01:00
parent 2f2f71422f
commit 8112788396
1 changed files with 2 additions and 1 deletions

View File

@ -43,9 +43,10 @@
- name: Add public key to remote
delegate_to: "{{ borg_server_host }}"
become: "{{ borg_server_user }}"
become: true
authorized_key:
exclusive: false
user: "{{ borg_server_user }}"
key: "{{ ssh_key.public_key }}"
key_options: >-
command="borg serve --restrict-to-path {{ borg_host_dir }},