Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
# file: roles/borgbackup/tasks/install.yml
- name: Apt Repository
apt_repository:
repo: 'ppa:costamagnagianfranco/borgbackup'
state: present
mode: 0644
- name: Install borgbackup
apt:
pkg: '{{ packages }}'
state: present
update_cache: yes
vars:
packages:
- libssl-dev
- libacl1-dev
- libacl1
- build-essential
- python-setuptools
- python3-dev
- python3-pip
- python3-msgpack
- openssh-client
- cron
- borgbackup
- name: Install borgmatic
pip:
executable: pip3
name: '{{ packages }}'
state: latest
vars:
packages:
- borgmatic
- name: Ensures directories
file:
path: '{{ item }}'
state: directory
mode: 0700
with_items:
- /etc/borgmatic
- /etc/borgmatic.d