21 lines
622 B
YAML
21 lines
622 B
YAML
|
---
|
||
|
- 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
|