infrastructure/playbooks/roles/backup/tasks/recovery.yml

14 lines
366 B
YAML
Raw Normal View History

2024-10-30 15:35:46 +00:00
- 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"