run rsyncd as rsyncd user instead of nobody

This commit is contained in:
Timo Makinen 2019-05-22 19:44:04 +03:00
parent b74e793e62
commit b31968dcf1
2 changed files with 17 additions and 0 deletions

View file

@ -1,4 +1,18 @@
---
- name: create rsyncd group
group:
name: rsyncd
system: true
- name: create rsyncd user
user:
name: rsyncd
comment: Service RSyncd
group: rsyncd
home: /var/empty
shell: /sbin/nologin
system: true
- name: create rsyncd config
template:
dest: /etc/rsyncd.conf

View file

@ -1,3 +1,6 @@
uid = rsyncd
gid = rsyncd
[test]
comment = test module
path = /srv/mirrors/openbsd/