---
- 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: Create application directories
file:
path: "{{ item }}"
state: directory
owner: dokku
group: dokku
with_items:
- /var/lib/minio
become: true
- name: Specify docker volume mount
dokku_storage:
mounts:
- "/var/lib/minio:/data"
- name: Configure the app environment
dokku_config:
restart: false
config:
DOKKU_LETSENCRYPT_EMAIL: "{{ autonomic_admin_mail }}"
MINIO_ACCESS_KEY: "{{ minio_access_key }}"
MINIO_SECRET_KEY: "{{ minio_secret_key }}"