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/postdeploy/lib/https.yml
2020-04-14 13:44:09 +02:00

18 lines
473 B
YAML

---
- name: Setup lets encrypt certificates
shell: "dokku letsencrypt {{ dokku.app }}"
args:
creates: "/home/dokku/{{ dokku.app }}/letsencrypt/certs"
- name: Setup lets encrypt certificates renew cron job
shell: dokku letsencrypt:cron-job --add
args:
creates: "/home/dokku/{{ dokku.app }}/letsencrypt/cron-job"
- name: Set HTTP 443 port
dokku_ports:
app: "{{ dokku.app }}"
mappings:
- "https:443:{{ config.vars.port }}"
state: present