38 lines
882 B
YAML
38 lines
882 B
YAML
---
|
|
- hosts: all
|
|
gather_facts: false
|
|
tasks:
|
|
- name: Load variables
|
|
include_vars:
|
|
dir: "{{ dokku_lib_root }}/data/ansible/homebase/vars/"
|
|
extensions:
|
|
- yml
|
|
|
|
- name: "Configure {{ domain }} domain"
|
|
dokku_domains:
|
|
app: homebase
|
|
domains:
|
|
- "{{ domain }}"
|
|
state: present
|
|
|
|
- name: Specify docker volume mount
|
|
dokku_storage:
|
|
app: homebase
|
|
mounts:
|
|
- /var/lib/homebase:/root/
|
|
|
|
- name: Configure the app environment
|
|
dokku_config:
|
|
app: homebase
|
|
restart: false
|
|
config:
|
|
DOKKU_LETSENCRYPT_EMAIL: "{{ autonomic_admin_mail }}"
|
|
|
|
- name: Copy over the homebase configuration file
|
|
template:
|
|
src: homebase.yml.j2
|
|
dest: /var/lib/homebase/.homebase.yml
|
|
owner: dokku
|
|
group: dokku
|
|
become: true
|