20 lines
667 B
YAML
20 lines
667 B
YAML
|
---
|
||
|
- name: Download Warehost-web (TODO current copy)
|
||
|
copy: src=warehost-web dest=/usr/local/bin/warehost-web owner=root group=root mode=0755
|
||
|
|
||
|
- name: Create web folder
|
||
|
file: path={{warehost_web_webroot}} state=directory owner=warehost group=http mode=0770
|
||
|
|
||
|
- name: Configurate warehost
|
||
|
template: src=config.yml dest=/etc/warehost/web.conf owner=warehost mode=0600
|
||
|
notify: restart warehost-web
|
||
|
|
||
|
- name: Install service
|
||
|
template: src=warehost-web.unit dest=/lib/systemd/system/warehost-web.service owner=root mode=644
|
||
|
notify:
|
||
|
- reload daemon-reload
|
||
|
- restart warehost-web
|
||
|
|
||
|
- name: Enable warehost
|
||
|
service: name=warehost-web state=started enabled=yes
|