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
Raw Normal View History

2020-06-04 12:55:48 +00:00
---
- hosts: homepage
vars:
apt:
packages:
- { package: "make", state: present }
- { package: "gcc", state: present }
2020-06-04 12:55:48 +00:00
systemd:
services:
- { name: "darkhttpd", enabled: true, action: restarted }
file:
- { path: "{{ homepage.root }}", owner: "root", group: "root", mode: "655", state: directory }
2020-06-04 12:55:48 +00:00
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" }
2020-06-04 12:55:48 +00:00
roles:
- apt
- git-clone
2020-06-04 12:55:48 +00:00
- darkhttpd
- file
- systemd