29 lines
989 B
YAML
29 lines
989 B
YAML
---
|
|
- 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"
|
|
vars_from: "datasets"
|
|
|
|
- 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
|