blob: ce731f61d2e5c9c32dba3107b7b5a8096f1255a1 (
plain)
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
|
---
- name: Create borg group on server
group:
name: borg
system: yes
- name: Create borg user on server
user:
name: borg
group: borg
shell: /bin/sh
home: /srv/borg
createhome: yes
system: yes
password: '*'
- name: Ensure borg directories exist on server
file:
state: directory
path: "{{ item }}"
owner: borg
mode: 0700
loop:
- /srv/borg
- /srv/borg/.ssh
- /srv/borg/repos
- name: deploy borg authorized_keys
template:
dest: /srv/borg/.ssh/authorized_keys
src: authorized_keys
owner: borg
mode: 0400
...
|