This repository has been archived on 2020-10-01. You can view files and clone it, but cannot push or open issues or pull requests.
drone.autonomic.zone/ansible/post-deploy.yml

47 lines
1.1 KiB
YAML
Raw Normal View History

---
- hosts: all
gather_facts: false
tasks:
- name: Load variables
include_vars:
dir: "{{ dokku_lib_root }}/data/ansible/drone/vars/"
extensions:
- yml
- name: Set HTTP 80 port proxy
dokku_ports:
app: drone
mappings:
- "http:80:{{ drone_port }}"
state: present
- name: Setup LE certificates
shell: dokku letsencrypt drone
args:
creates: /home/dokku/drone/letsencrypt/certs
- name: Setup LE certificates renew cron job
shell: dokku letsencrypt:cron-job --add
args:
creates: /home/dokku/drone/letsencrypt/cron-job
2020-03-25 00:21:53 +00:00
- name: Specify certificate docker volume mounts
dokku_storage:
app: keycloak
mounts:
2020-03-29 09:09:35 +00:00
- /home/dokku/drone/letsencrypt/certs:/etc/ssl/certs/
2020-03-25 00:21:53 +00:00
- name: Set HTTP 443 port
dokku_ports:
app: drone
mappings:
2020-03-25 00:21:53 +00:00
- "https:443:{{ drone_port }}"
state: present
2020-03-25 00:24:22 +00:00
- name: Remove automatically configured ports
dokku_ports:
app: gitea
mappings:
- "http:{{ drone_port }}:{{ drone_port }}"
state: absent