Set backup clients to append only mode
This commit is contained in:
parent
6b537f5ef5
commit
a709cc5d27
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user