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/nginx.yml

11 lines
353 B
YAML
Raw Normal View History

2016-11-22 14:14:04 +01:00
---
- name: Create ssl cert
command: /srv/bin/ssl-create {{warehost_api_domain}}
args:
creates: /etc/letsencrypt/live/{{warehost_api_domain}}/fullchain.pem
when: warehostv2_api_ssl
- name: Configurate nginx
2016-12-07 11:49:05 +01:00
template: src=nginx.conf dest=/etc/nginx/servers/80-{{ warehost_api_domain }}.act owner={{http_usr}} mode=644
2016-11-22 14:14:04 +01:00
notify: reload nginx