This repository has been archived on 2020-09-30. You can view files and clone it, but cannot push or open issues or pull requests.
id.autonomic.zone/ansible/post-deploy.yml
Luke Murphy 5a8b770632
All checks were successful
continuous-integration/drone/push Build is passing
Don't mount volumes
Because HTTPS terminates at the Nginx layer.
2020-04-06 22:03:46 +02:00

41 lines
997 B
YAML

---
- hosts: all
gather_facts: false
tasks:
- name: Load variables
include_vars:
dir: "{{ dokku_lib_root }}/data/ansible/keycloak/vars/"
extensions:
- yml
- name: Set HTTP 80 port proxy
dokku_ports:
app: keycloak
mappings:
- "http:80:{{ http_port }}"
state: present
- name: Setup LE certificates
shell: dokku letsencrypt keycloak
args:
creates: /home/dokku/keycloak/letsencrypt/certs
- name: Setup LE certificates renew cron job
shell: dokku letsencrypt:cron-job --add
args:
creates: /home/dokku/keycloak/letsencrypt/cron-job
- name: Remove automatically configured ports
dokku_ports:
app: keycloak
mappings:
- "http:{{ http_port }}:{{ http_port }}"
state: absent
- name: Set HTTP 443 port
dokku_ports:
app: keycloak
mappings:
- "https:443:{{ http_port }}"
state: present