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-host/tasks/main.yml

27 lines
907 B
YAML
Raw Normal View History

2016-11-27 10:06:35 +01:00
---
- 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 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