run rsyncd as rsyncd user instead of nobody
This commit is contained in:
parent
b74e793e62
commit
b31968dcf1
2 changed files with 17 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
uid = rsyncd
|
||||
gid = rsyncd
|
||||
|
||||
[test]
|
||||
comment = test module
|
||||
path = /srv/mirrors/openbsd/
|
||||
|
|
Loading…
Add table
Reference in a new issue