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

19 lines
520 B
YAML

---
- name: "create restic password file"
ansible.builtin.template:
src: "./restic.password.j2"
dest: "{{ backups_restic_user_restic_password_file }}"
mode: 0600
- name: "create aws key file"
ansible.builtin.template:
src: "./restic-aws-keys.yml.j2"
dest: "{{ backups_restic_user_aws_keys_file }}"
mode: 0600
- name: "configure service restic backups"
ansible.builtin.template:
src: "./volumes.yml.j2"
dest: "/etc/restic-batch.d/{{ backups_restic_user_name }}.yml"
mode: 0644