--- - name: Download Warehost get_url: url=https://warehost.sum7.eu/downloads/current/warehost-api dest=/usr/local/bin/warehost-api owner=root group=root mode=0755 notify: restart warehost-api - 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"