torrent: setup torrent user/group
This used to get setup by the bittorrent package, but we don't use that anymore, so lets do it manually here. We need these to own various torrent content. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
8d89c61c89
commit
c1187db20b
1 changed files with 10 additions and 0 deletions
|
@ -13,6 +13,16 @@
|
|||
tags:
|
||||
- packages
|
||||
|
||||
- name: add torrent group
|
||||
group: name=torrent state=present system=yes local=true
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: add torrent user
|
||||
user: name=torrent state=present home=/var/spool/bittorrent createhome=yes system=yes local=true group=torrent
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: Create the required directories
|
||||
file: path={{ item.file }} owner={{ item.owner }}
|
||||
group={{ item.group }} mode={{ item.mode }} state=directory
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue