mirror of
https://github.com/borgbase/ansible-role-borgbackup.git
synced 2025-05-24 01:17:15 +02:00
Refactored
This commit is contained in:
parent
03c9f4ff11
commit
d992c83e49
23
tasks/05_configure.yml
Executable file
23
tasks/05_configure.yml
Executable file
@ -0,0 +1,23 @@
|
||||
---
|
||||
- name: Configure borgbackup
|
||||
when:
|
||||
- install_backup is not defined or install_backup
|
||||
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 }}"
|
||||
...
|
Loading…
Reference in New Issue
Block a user