mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user