This repository has been archived on 2020-06-17. You can view files and clone it, but cannot push or open issues or pull requests.
minio/ansible/pre-deploy.yml

42 lines
977 B
YAML
Raw Normal View History

2020-03-26 10:37:18 +00:00
---
- 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
2020-03-26 10:37:18 +00:00
- name: Specify docker volume mount
dokku_storage:
app: minio
mounts:
- /var/run/minio:/data
2020-03-26 10:37:18 +00:00
- 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 }}"