mirror of
https://github.com/nikdoof/ansible-borgmatic.git
synced 2025-12-13 02:42:18 +00:00
31 lines
697 B
YAML
31 lines
697 B
YAML
---
|
|
- name: Install BorgBackup
|
|
ansible.builtin.package:
|
|
name: borgbackup
|
|
state: present
|
|
|
|
- name: Install Borgmatic (Pip)
|
|
ansible.builtin.pip:
|
|
name: borgmatic
|
|
when:
|
|
- borgmatic_install_from_pip | default(false)
|
|
|
|
- name: Install Borgmatic (Package)
|
|
ansible.builtin.package:
|
|
name: borgmatic
|
|
when:
|
|
- borgmatic_install_from_package | default(false)
|
|
|
|
- name: Add borgmatic systemd units
|
|
ansible.builtin.copy:
|
|
src: "systemd/{{ item }}"
|
|
dest: "/etc/systemd/system/{{ item }}"
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|
|
notify: reload systemd
|
|
loop:
|
|
- borgmatic.service
|
|
- borgmatic.timer
|
|
when:
|
|
- borgmatic_install_from_pip | default(false) |