Set backup clients to append only mode

This commit is contained in:
Tobias Manske 2024-01-26 22:16:25 +01:00
parent 6b537f5ef5
commit a709cc5d27
Signed by: tobias
GPG Key ID: 9164B527694A0709

View File

@ -122,7 +122,7 @@
path: /etc/ssh/authorized_keys/backup path: /etc/ssh/authorized_keys/backup
state: present state: present
search_string: "{{ keypair.public_key }}" search_string: "{{ keypair.public_key }}"
line: 'command="borg serve --restrict-to-repository {{ repo_path }}",restrict {{ keypair.public_key }}' line: 'command="borg serve --append-only --restrict-to-repository {{ repo_path }}",restrict {{ keypair.public_key }}'
- name: Add Known Hosts entries - name: Add Known Hosts entries
ansible.builtin.known_hosts: ansible.builtin.known_hosts:
path: "/root/.ssh/known_hosts" path: "/root/.ssh/known_hosts"