Refactor everything
This commit is contained in:
parent
2e100d290f
commit
3f2e60becf
69 changed files with 366 additions and 281 deletions
|
@ -1,8 +1,12 @@
|
|||
---
|
||||
- name: Set common facts
|
||||
ansible.builtin.import_tasks: tasks/set-default-facts.yml
|
||||
|
||||
- name: Deploy {{ svc.name }}
|
||||
tags:
|
||||
- minio
|
||||
- storage
|
||||
vars:
|
||||
svc: "{{ minio_svc }}"
|
||||
env: "{{ minio_env }}"
|
||||
compose: "{{ minio_compose }}"
|
||||
block:
|
||||
- name: Import tasks to deploy common service
|
||||
ansible.builtin.import_tasks: tasks/deploy-common-service.yml
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
svc:
|
||||
minio_svc:
|
||||
domain: s3.serguzim.me
|
||||
name: minio
|
||||
port: 9000
|
||||
|
@ -13,7 +13,7 @@ svc:
|
|||
docker_host: minio
|
||||
port: 9001
|
||||
|
||||
svc_env:
|
||||
minio_env:
|
||||
MINIO_SERVER_URL: https://{{ svc.domain }}/
|
||||
MINIO_BROWSER_REDIRECT_URL: https://console.{{ svc.domain }}
|
||||
MINIO_VOLUMES: /data
|
||||
|
@ -21,10 +21,9 @@ svc_env:
|
|||
MINIO_ROOT_USER: "{{ vault_minio.user }}"
|
||||
MINIO_ROOT_PASSWORD: "{{ vault_minio.pass }}"
|
||||
|
||||
compose:
|
||||
minio_compose:
|
||||
watchtower: true
|
||||
image: minio/minio
|
||||
env: true
|
||||
volumes:
|
||||
- data:/data
|
||||
file:
|
||||
|
|
Reference in a new issue