32 lines
760 B
YAML
32 lines
760 B
YAML
---
|
|
- hosts: all
|
|
gather_facts: false
|
|
tasks:
|
|
- name: Load variables
|
|
include_vars:
|
|
dir: "{{ dokku_lib_root }}/data/ansible/minio/vars/"
|
|
extensions:
|
|
- yml
|
|
|
|
- name: "Configure {{ domain }} domain"
|
|
dokku_domains:
|
|
app: minio
|
|
domains:
|
|
- "{{ domain }}"
|
|
state: present
|
|
|
|
- name: Specify docker volume mount
|
|
dokku_storage:
|
|
app: minio
|
|
mounts:
|
|
- /dev/sda1:/data
|
|
|
|
- name: Configure the app environment
|
|
dokku_config:
|
|
app: minio
|
|
restart: false
|
|
config:
|
|
DOKKU_LETSENCRYPT_EMAIL: "{{ autonomic_admin_mail }}"
|
|
MINIO_ACCESS_KEY: "{{ minio_access_key }}"
|
|
MINIO_SECRET_KEY: "{{ minio_secret_key }}"
|