---
- 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
creates: "/home/dokku/{{ app }}/letsencrypt/cron-job"
- name: Set HTTP 443 port
dokku_ports:
app: "{{ app }}"
mappings:
- "https:443:{{ port }}"
state: present