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

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