Group plays to hooks

This commit is contained in:
Luke Murphy
2020-04-14 11:30:40 +02:00
parent 0079925738
commit c099827d88
16 changed files with 63 additions and 63 deletions

View File

@ -0,0 +1,7 @@
---
- name: Set HTTP 80 port proxy
dokku_ports:
app: "{{ app }}"
mappings:
- "http:80:{{ port }}"
state: present

View File

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

View File

@ -0,0 +1,7 @@
---
- name: Remove automatically configured ports
dokku_ports:
app: "{{ app }}"
mappings:
- "http:{{ port }}:{{ port }}"
state: absent