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

29 lines
989 B
YAML
Raw Normal View History

2023-02-12 16:37:48 +01:00
---
- name: "{{ services_service_name }} : tasks:vars"
ansible.builtin.import_role:
name: "services/include"
vars_from: "user"
- name: "{{ services_service_name }} : tasks:vars"
ansible.builtin.import_role:
name: "services/backups/include"
2023-02-13 00:12:30 +01:00
vars_from: "datasets"
2023-02-12 16:37:48 +01:00
- name: "{{ services_service_name }} : create restic password file"
ansible.builtin.template:
src: "./restic.password.j2"
dest: "{{ services_backups_restic_services[services_service_name].restic_password_file }}"
mode: 0600
- name: "{{ services_service_name }} : create aws key file"
ansible.builtin.template:
src: "./restic-aws-keys.yml.j2"
dest: "{{ services_backups_restic_services[services_service_name].aws_keys_file }}"
mode: 0600
- name: "{{ services_service_name }} : configure service restic backups"
ansible.builtin.template:
src: "./restic-volumes-service.yml.j2"
dest: "/etc/restic-batch.d/restic-volumes-{{ services_service_name }}.yml"
mode: 0644