28 lines
1021 B
YAML
28 lines
1021 B
YAML
---
|
|
- name: Download Warehost-host
|
|
get_url: url=https://warehost.sum7.eu/downloads/current/warehost-host dest=/usr/local/bin/warehost-host owner=root group=root mode=0755 force=yes
|
|
|
|
- name: Configurate warehost-host
|
|
template: src=config.yml dest=/etc/warehost/host.conf owner=warehost mode=0600
|
|
|
|
- name: Configurate host template
|
|
template: src={{warehost_host_web_type}}.conf dest=/etc/warehost/host-web.tmpl owner=warehost mode=0600
|
|
|
|
- name: Configurate warehost-host
|
|
file: path={{warehost_host_web_path}} state=touch owner=warehost group={{http_grp}} mode=0660
|
|
|
|
- name: Fix permission on domain folders
|
|
file: path=/srv/http/domain state=directory owner=warehost group={{http_grp}} recurse=yes
|
|
|
|
- name: Install service
|
|
template: src=warehost-host.{{item}} dest=/lib/systemd/system/warehost-host.{{item}} owner=root mode=644
|
|
with_items:
|
|
- service
|
|
- timer
|
|
notify:
|
|
- reload daemon-reload
|
|
- restart warehost-host
|
|
|
|
- name: Enable warehost
|
|
service: name=warehost-host.timer state=started enabled=yes
|