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-07-23 00:37:19 +02:00
|
|
|
dest: "{{ system_etc_root_directory }}/restic-batch.d/{{ backups_restic_user_name }}.yml"
|
2023-02-19 22:36:16 +01:00
|
|
|
mode: 0644
|