changed location for btrbk ssh keys
parent
5c35bd5872
commit
c87cae2437
|
@ -11,7 +11,7 @@ archive_preserve 0h 1d 1w 1m 1y
|
||||||
archive_preserve_min latest
|
archive_preserve_min latest
|
||||||
|
|
||||||
incremental yes
|
incremental yes
|
||||||
ssh_identity /var/lib/btrbk/.ssh/id_ed25519
|
ssh_identity /etc/btrbk/id_ed25519
|
||||||
ssh_user btrbk
|
ssh_user btrbk
|
||||||
backend btrfs-progs-doas
|
backend btrfs-progs-doas
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ archive_preserve 0h 1d 1w 1m 1y
|
||||||
archive_preserve_min latest
|
archive_preserve_min latest
|
||||||
|
|
||||||
incremental yes
|
incremental yes
|
||||||
ssh_identity /var/lib/btrbk/.ssh/id_ed25519
|
ssh_identity /etc/btrbk/id_ed25519
|
||||||
ssh_user btrbk
|
ssh_user btrbk
|
||||||
backend btrfs-progs-doas
|
backend btrfs-progs-doas
|
||||||
|
|
||||||
|
|
|
@ -23,30 +23,17 @@
|
||||||
src: "host_files/btrbk/{{ ansible_hostname }}/btrbk.conf"
|
src: "host_files/btrbk/{{ ansible_hostname }}/btrbk.conf"
|
||||||
dest: /etc/btrbk/btrbk.conf
|
dest: /etc/btrbk/btrbk.conf
|
||||||
|
|
||||||
- name: make btrbk user ssh directory
|
- name: copy btrbk ssh key
|
||||||
file:
|
|
||||||
state: directory
|
|
||||||
path: /var/lib/btrbk/.ssh
|
|
||||||
owner: btrbk
|
|
||||||
|
|
||||||
- name: copy btrbk user ssh key
|
|
||||||
copy:
|
copy:
|
||||||
src: id_ed25519
|
src: id_ed25519
|
||||||
dest: /var/lib/btrbk/.ssh/id_ed25519
|
dest: /etc/btrbk/id_ed25519
|
||||||
owner: btrbk
|
owner: btrbk
|
||||||
mode: '0400'
|
mode: '0400'
|
||||||
|
|
||||||
- name: copy btrbk user ssh public key
|
|
||||||
copy:
|
|
||||||
src: id_ed25519.pub
|
|
||||||
dest: /var/lib/btrbk/.ssh/id_ed25519.pub
|
|
||||||
owner: btrbk
|
|
||||||
mode: '0644'
|
|
||||||
|
|
||||||
- name: copy btrbk user ssh public key to authorized_keys
|
- name: copy btrbk user ssh public key to authorized_keys
|
||||||
copy:
|
copy:
|
||||||
src: id_ed25519.pub
|
src: id_ed25519.pub
|
||||||
dest: /var/lib/btrbk/.ssh/authorized_keys
|
dest: /etc/ssh/authorized_keys/btrbk
|
||||||
owner: btrbk
|
owner: btrbk
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
|
||||||
|
@ -54,7 +41,4 @@
|
||||||
lbu:
|
lbu:
|
||||||
include:
|
include:
|
||||||
- /usr/local/bin/btrbk
|
- /usr/local/bin/btrbk
|
||||||
- /var/lib/btrbk/.ssh/id_ed25519
|
|
||||||
- /var/lib/btrbk/.ssh/id_ed25519.pub
|
|
||||||
- /var/lib/btrbk/.ssh/authorized_keys
|
|
||||||
when: ansible_distribution == "Alpine" and alpine_mode in ["diskless", "data"]
|
when: ansible_distribution == "Alpine" and alpine_mode in ["diskless", "data"]
|
||||||
|
|
Loading…
Reference in New Issue