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

18 lines
473 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
2020-04-14 11:02:16 +00:00
shell: "dokku letsencrypt {{ dokku.app }}"
2020-04-13 14:01:48 +00:00
args:
2020-04-14 11:02:16 +00:00
creates: "/home/dokku/{{ dokku.app }}/letsencrypt/certs"
2020-04-13 14:01:48 +00:00
- name: Setup lets encrypt certificates renew cron job
shell: dokku letsencrypt:cron-job --add
args:
2020-04-14 11:02:16 +00:00
creates: "/home/dokku/{{ dokku.app }}/letsencrypt/cron-job"
2020-04-13 14:01:48 +00:00
2020-04-13 10:49:14 +00:00
- name: Set HTTP 443 port
dokku_ports:
2020-04-14 11:02:16 +00:00
app: "{{ dokku.app }}"
2020-04-13 10:49:14 +00:00
mappings:
2020-04-14 11:44:09 +00:00
- "https:443:{{ config.vars.port }}"
2020-04-13 10:49:14 +00:00
state: present