mirror of
https://github.com/borgbase/ansible-role-borgbackup.git
synced 2025-06-02 01:17:19 +02:00
22 lines
558 B
YAML
Executable File
22 lines
558 B
YAML
Executable File
---
|
|
- name: Configure borgbackup
|
|
tags:
|
|
- install_backup
|
|
block:
|
|
- name: Ensure /etc/borgmatic exists
|
|
ansible.builtin.file:
|
|
path: /etc/borgmatic
|
|
state: directory
|
|
mode: "0700"
|
|
owner: "{{ borgbackup_user }}"
|
|
group: "{{ borgbackup_group }}"
|
|
|
|
- name: Add Borgmatic configuration
|
|
ansible.builtin.template:
|
|
src: config.yaml.j2
|
|
dest: "/etc/borgmatic/{{ borgmatic_config_name }}"
|
|
mode: "0600"
|
|
owner: "{{ borgbackup_user }}"
|
|
group: "{{ borgbackup_group }}"
|
|
...
|