mirror of
https://github.com/borgbase/ansible-role-borgbackup.git
synced 2024-11-19 19:07:42 +01:00
22 lines
556 B
YAML
Executable File
22 lines
556 B
YAML
Executable File
---
|
|
- name: Add Borgmatic config file
|
|
when:
|
|
- borg_install_method != "docker"
|
|
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 }}"
|
|
...
|