This repository has been archived on 2020-05-07. You can view files and clone it, but cannot push or open issues or pull requests.
dokku-ansible-deploy/plays/lib/https.yml

18 lines
437 B
YAML
Raw Normal View History

2020-04-13 10:49:14 +00:00
---
2020-04-13 14:01:48 +00:00
- name: Setup lets encrypt certificates
shell: "dokku letsencrypt {{ app }}"
args:
creates: "/home/dokku/{{ app }}/letsencrypt/certs"
- name: Setup lets encrypt certificates renew cron job
shell: dokku letsencrypt:cron-job --add
args:
creates: "/home/dokku/{{ app }}/letsencrypt/cron-job"
2020-04-13 10:49:14 +00:00
- name: Set HTTP 443 port
dokku_ports:
app: "{{ app }}"
mappings:
- "https:443:{{ port }}"
state: present