1
0
Fork 0
This repository has been archived on 2025-03-10. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-role-borg/tasks/server.yml
Julien Dessaux 277f232657 Fixed borg server account for Alpine Linux
The locked account set a password as '!' which prevents login with ssh
keys on only Alpine Linux. Setting the hashed password to '*' still
prevents ssh login with passwords but no longer blocks ssh keys.
2021-08-14 15:00:43 +02:00

27 lines
451 B
YAML

---
- 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
...