27 lines
915 B
YAML
27 lines
915 B
YAML
---
|
|
- name: Download Warehost-host (TODO current copy)
|
|
copy: src=warehost-host dest=/usr/local/bin/warehost-host owner=root group=root mode=0755
|
|
|
|
- name: Configurate warehost-host
|
|
template: src=config.yml dest=/etc/warehost/host.conf owner=warehost mode=0600
|
|
notify: restart warehost-host
|
|
|
|
- name: Configurate host template
|
|
template: src={{warehost_host_web_type}}.conf dest=/etc/warehost/host-web.tmpl owner=warehost mode=0600
|
|
notify: restart warehost-host
|
|
|
|
- name: Configurate warehost-host
|
|
file: path={{warehost_host_web_path}} state=touch owner=warehost group={{http_grp}} mode=0660
|
|
|
|
- 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
|