This repository has been archived on 2020-08-22. You can view files and clone it, but cannot push or open issues or pull requests.
ansible/homepage.yml

21 lines
622 B
YAML
Raw Normal View History

2020-06-04 12:55:48 +00:00
---
- 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