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