1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/hefur/tasks/main.yml
Jelle van der Waa 0777baea09 orion: migrate torrent tracker from luna to orion
Add a role for the hefur torrent tracker. A simple
service which runs on tracker.archlinux.org. Note that our setup
overrides a few things of the systemd service.

Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
2018-12-27 19:58:53 +01:00

19 lines
575 B
YAML

---
- name: install required packages
pacman: name=hefur
- name: create override dir
file: path=/etc/systemd/system/hefurd.service.d state=directory
- name: copy systemd override
template: src=override.conf.j2 dest=/etc/systemd/system/hefurd.service.d/override.conf owner=root group=root mode="u=rw,g=r,o=r"
- name: start and enable hefurd service
service: name="hefurd.service" enabled=yes state=started
- name: open firewall hole for hefurd
firewalld: port=6969/tcp permanent=true state=enabled immediate=yes
when: configure_firewall
tags:
- firewall