This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
2016-11-27 10:06:35 +01:00
|
|
|
---
|
2016-12-13 17:22:52 +01:00
|
|
|
- name: Download Warehost-host
|
2016-12-29 09:15:13 +01:00
|
|
|
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
|
2016-11-27 10:06:35 +01:00
|
|
|
|
|
|
|
- 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
|
2016-12-07 11:49:05 +01:00
|
|
|
file: path={{warehost_host_web_path}} state=touch owner=warehost group={{http_grp}} mode=0660
|
2016-11-27 10:06:35 +01:00
|
|
|
|
2016-12-13 17:22:52 +01:00
|
|
|
- name: Fix permission on domain folders
|
|
|
|
file: path=/srv/http/domain state=directory owner=warehost group={{http_grp}} recurse=yes
|
|
|
|
|
2016-11-27 10:06:35 +01:00
|
|
|
- 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
|