Add homepage

This commit is contained in:
Alex 2020-06-04 14:55:48 +02:00
parent 3493b1b6ea
commit c15cba2d24
No account linked to committer's email address
3 changed files with 24 additions and 0 deletions

3
.gitmodules vendored
View File

@ -85,3 +85,6 @@
[submodule "roles/fail2ban"]
path = roles/fail2ban
url = https://git.redxen.eu/RedXen/ansible-fail2ban
[submodule "roles/homepage"]
path = roles/homepage
url = https://git.redxen.eu/RedXen/ansible-homepage

20
homepage.yml Normal file
View File

@ -0,0 +1,20 @@
---
- hosts: homepage
vars:
systemd:
services:
- { name: "darkhttpd", enabled: true, action: restarted }
file:
- { path: "{{ homepage.root }}", owner: "nobody", group: "nogroup", mode: "655", state: directory }
darkhttpd:
port: "{{ global.homepage.port }}"
path: "/etc/darkhttpd" # Where to build and run the daemon from
servepath: "{{ homepage.root }}"
homepage:
root: "/srv/homepage"
roles:
- darkhttpd
- file
- homepage
- systemd

1
roles/homepage Submodule

@ -0,0 +1 @@
Subproject commit 1ba7d5996bfc8d597f1fbff2d4dc6cb919c6d7b5