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

19 lines
610 B
YAML
Raw Normal View History

2023-02-19 22:36:16 +01:00
---
2023-02-22 21:25:21 +01:00
- name: "{{ backups_restic_user_name }} : create restic password file"
2023-02-19 22:36:16 +01:00
ansible.builtin.template:
2023-07-08 10:04:37 +02:00
src: "./restic.password"
2023-02-19 22:36:16 +01:00
dest: "{{ backups_restic_user_restic_password_file }}"
mode: 0600
2023-02-22 21:25:21 +01:00
- name: "{{ backups_restic_user_name }} : create aws key file"
2023-02-19 22:36:16 +01:00
ansible.builtin.template:
2023-07-08 10:04:37 +02:00
src: "./restic-aws-keys.yml"
2023-02-19 22:36:16 +01:00
dest: "{{ backups_restic_user_aws_keys_file }}"
mode: 0600
2023-02-22 21:25:21 +01:00
- name: "{{ backups_restic_user_name }} : configure service restic backups"
2023-02-19 22:36:16 +01:00
ansible.builtin.template:
2023-07-08 10:04:37 +02:00
src: "./volumes.yml"
2023-02-19 22:36:16 +01:00
dest: "/etc/restic-batch.d/{{ backups_restic_user_name }}.yml"
mode: 0644