28 lines
928 B
YAML
28 lines
928 B
YAML
---
|
|
- hosts: homepage
|
|
vars:
|
|
apt:
|
|
packages:
|
|
- { package: "make", state: present }
|
|
- { package: "gcc", state: present }
|
|
systemd:
|
|
services:
|
|
- { name: "darkhttpd", enabled: true, action: restarted }
|
|
file:
|
|
- { path: "{{ homepage.root }}", owner: "root", group: "root", 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"
|
|
git_clone:
|
|
- { dest: "{{ homepage.root }}", repo: "https://git.redxen.eu/RedXen/Homepage", branch: "master" }
|
|
roles:
|
|
- apt
|
|
- git-clone
|
|
- darkhttpd
|
|
- file
|
|
- systemd
|