Adapt to more scoped config

This commit is contained in:
Luke Murphy
2020-04-14 13:02:16 +02:00
parent ddaa516e38
commit 22e15e4b50
11 changed files with 55 additions and 27 deletions

View File

@ -1,17 +1,17 @@
---
- name: Setup lets encrypt certificates
shell: "dokku letsencrypt {{ app }}"
shell: "dokku letsencrypt {{ dokku.app }}"
args:
creates: "/home/dokku/{{ app }}/letsencrypt/certs"
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/{{ app }}/letsencrypt/cron-job"
creates: "/home/dokku/{{ dokku.app }}/letsencrypt/cron-job"
- name: Set HTTP 443 port
dokku_ports:
app: "{{ app }}"
app: "{{ dokku.app }}"
mappings:
- "https:443:{{ port }}"
- "https:443:{{ vars.port }}"
state: present