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:
Kevin Fenzi 2023-11-28 16:01:21 -08:00
parent 8d89c61c89
commit c1187db20b

View file

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