Add (manual) recovery scripts
This commit is contained in:
parent
a2c680f3e8
commit
4f97b66c3d
4 changed files with 48 additions and 1 deletions
playbooks/roles/backup/tasks
13
playbooks/roles/backup/tasks/recovery.yml
Normal file
13
playbooks/roles/backup/tasks/recovery.yml
Normal file
|
@ -0,0 +1,13 @@
|
|||
- name: Set recovery path
|
||||
ansible.builtin.set_fact:
|
||||
recovery_path: "{{ (service_path, 'recovery') | path_join }}"
|
||||
- name: Create recovery directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ recovery_path }}"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
- name: Copy the recovery
|
||||
ansible.builtin.copy:
|
||||
src: recovery/
|
||||
dest: "{{ recovery_path }}"
|
||||
mode: "0755"
|
Loading…
Add table
Add a link
Reference in a new issue