ansible/roles/borgbase.ansible_role_borgbackup/tasks/05_configure.yml
Gabriel Augendre b02de7192c
Some checks failed
/ run ansible (push) Has been cancelled
add borgmatic
2024-10-13 19:15:24 +02:00

19 lines
510 B
YAML
Executable file

---
- name: Add Borgmatic config file
block:
- name: Ensure /etc/borgmatic exists
ansible.builtin.file:
path: /etc/borgmatic
state: directory
mode: "0700"
owner: "{{ borg_user }}"
group: "{{ borg_group }}"
- name: Add Borgmatic configuration
ansible.builtin.template:
src: config.yaml.j2
dest: "/etc/borgmatic/{{ borgmatic_config_name }}"
mode: "0600"
owner: "{{ borg_user }}"
group: "{{ borg_group }}"
...