wip: unifi: restore data dir
parent
423f28ea53
commit
abdd12b1d1
2
.certs
2
.certs
|
@ -1 +1 @@
|
|||
Subproject commit 032291106768e582219e1e9be41bb161d191bd1a
|
||||
Subproject commit c430ecd3f76f07d941c1e6c62b2a447c44652411
|
|
@ -1,2 +1,5 @@
|
|||
restic_include:
|
||||
- /var/lib/unifi
|
||||
|
||||
unifi_data_restore_command: >-
|
||||
restic restore --path /var/lib/unifi latest
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
- name: restore unifi data directory from backup
|
||||
command: >-
|
||||
{{ unifi_data_restore_command }}
|
||||
args:
|
||||
creates: /var/lib/unifi/db
|
||||
when: unifi_data_restore_command|d
|
||||
tags:
|
||||
- restore
|
||||
|
||||
- name: ensure unifi.container systemd unit exists
|
||||
template:
|
||||
src: unifi.container.j2
|
||||
|
|
Loading…
Reference in New Issue