forked from data.coop/ansible
Add known_hosts to Restic's SSH folder
This commit is contained in:
parent
2d11a664b4
commit
9d4c7be801
|
@ -49,10 +49,11 @@ services:
|
||||||
|
|
||||||
restic:
|
restic:
|
||||||
file: restic_backup.yml
|
file: restic_backup.yml
|
||||||
user: "dc-user"
|
user: dc-user
|
||||||
domain: "rynkeby.skovgaard.tel"
|
domain: rynkeby.skovgaard.tel
|
||||||
|
host_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBLGol2G+a87ssy0nu/STKBZSiGyhZhZKx/ujfe9IeFo
|
||||||
volume_folder: "{{ volume_root_folder }}/restic"
|
volume_folder: "{{ volume_root_folder }}/restic"
|
||||||
repository: "restic"
|
repository: restic
|
||||||
version: "1.6.0"
|
version: "1.6.0"
|
||||||
disabled_in_vagrant: true
|
disabled_in_vagrant: true
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,14 @@
|
||||||
group: root
|
group: root
|
||||||
mode: '0600'
|
mode: '0600'
|
||||||
|
|
||||||
|
- name: Create SSH known_hosts file
|
||||||
|
template:
|
||||||
|
src: restic.ssh.known_hosts.j2
|
||||||
|
dest: "{{ services.restic.volume_folder }}/ssh/known_hosts"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: '0600'
|
||||||
|
|
||||||
- name: Setup restic backup
|
- name: Setup restic backup
|
||||||
docker_compose:
|
docker_compose:
|
||||||
project_name: restic_backup
|
project_name: restic_backup
|
||||||
|
|
1
roles/docker/templates/restic.ssh.known_hosts.j2
Normal file
1
roles/docker/templates/restic.ssh.known_hosts.j2
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{{ services.restic.domain }} {{ services.restic.host_key }}
|
Loading…
Reference in a new issue