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

19 lines
637 B
YAML

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