Add homepage
This commit is contained in:
parent
3493b1b6ea
commit
c15cba2d24
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 1ba7d5996bfc8d597f1fbff2d4dc6cb919c6d7b5
|
Reference in New Issue