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

---
- 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
template: src=nginx.conf dest=/etc/nginx/servers/80-{{ warehost_api_domain }}.act owner={{http_usr}} mode=644
notify: reload nginx