18 lines
473 B
YAML
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
|