---
- 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
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