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

26 lines
733 B
YAML

---
- name: Download Warehost (TODO current copy)
copy: src=warehost dest=/usr/local/bin/warehost-api owner=root group=root mode=0755
- name: Configurate warehost
template: src=config.yml dest=/etc/warehost/api.conf owner=warehost mode=0600
notify: restart warehost-api
- name: Install service
template: src=warehost-api.unit dest=/lib/systemd/system/warehost-api.service owner=root mode=644
notify:
- reload daemon-reload
- restart warehost-api
- name: Enable warehost
service: name=warehost-api state=started enabled=yes
- name: Configurate per nginx
include: nginx.yml
when: warehost_webserver_type == "nginx"
- name: Configurate per caddy
include: caddy.yml
when: warehost_webserver_type == "caddy"