35 lines
746 B
YAML
35 lines
746 B
YAML
---
|
|
- hosts: all
|
|
tasks:
|
|
- name: Load variables
|
|
include_vars:
|
|
dir: "{{ dokku_lib_root }}/data/ansible/gitea/vars/"
|
|
extensions:
|
|
- yml
|
|
|
|
- name: Set HTTP 80 port proxy
|
|
dokku_ports:
|
|
app: gitea
|
|
mappings:
|
|
- "http:80:3000"
|
|
state: present
|
|
|
|
- name: Setup LE certificates
|
|
shell: dokku letsencrypt gitea
|
|
args:
|
|
creates: /home/dokku/gitea/letsencrypt/certs
|
|
|
|
- name: Set HTTP 443 port
|
|
dokku_ports:
|
|
app: gitea
|
|
mappings:
|
|
- "https:443:3000"
|
|
state: present
|
|
|
|
- name: Remove automatically configured ports
|
|
dokku_ports:
|
|
app: gitea
|
|
mappings:
|
|
- "http:3000:3000"
|
|
state: absent
|