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.
ansible-role-warehost/warehost-web/tasks/main.yml

21 lines
732 B
YAML
Raw Normal View History

2016-11-25 00:04:34 +01:00
---
2016-12-13 17:22:52 +01:00
- name: Download Warehost-web
get_url: url=https://warehost.sum7.eu/downloads/current/warehost-web dest=/usr/local/bin/warehost-web owner=root group=root mode=0755
2016-12-20 12:14:13 +01:00
notify: restart warehost-web
2016-11-25 00:04:34 +01:00
- name: Create web folder
2016-12-07 11:49:05 +01:00
file: path={{warehost_web_webroot}} state=directory owner=warehost group={{http_grp}} mode=0770
2016-11-25 00:04:34 +01:00
- 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