wip: unifi: restore data dir
This commit is contained in:
2
.certs
2
.certs
Submodule .certs updated: 0322911067...c430ecd3f7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user