ansible-edda/playbooks/roles/services/backups/tasks/include/restic.yml

18 lines
753 B
YAML

- name: "{{ services_service_name }} : restic : create restic password file"
ansible.builtin.template:
src: "./restic/restic.password.j2"
dest: "{{ services_backups_restic_services[services_service_name].restic_password_file }}"
mode: 0600
- name: "{{ services_service_name }} : restic : create aws key file"
ansible.builtin.template:
src: "./restic/restic-aws-keys.yml.j2"
dest: "{{ services_backups_restic_services[services_service_name].aws_keys_file }}"
mode: 0600
- name: "{{ services_service_name }} : restic : configure service restic backups"
ansible.builtin.template:
src: "./restic/restic-volumes-service.yml.j2"
dest: "/etc/restic-batch.d/restic-volumes-{{ services_service_name }}.yml"
mode: 0644