Add minio to ansible

This commit is contained in:
Tobias Reisinger 2023-12-11 15:27:03 +01:00
parent 5f9747c378
commit e006f44dd6
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
10 changed files with 53 additions and 53 deletions
_ansible
inventory
host_vars
node002
node003
serguzim.net.yml
node003.yml
roles/minio

View file

@ -1 +1,2 @@
services_path: /opt/services/
ansible_port: "{{ vault_node002.ansible_port }}"
ansible_user: "{{ vault_node002.ansible_user }}"

View file

@ -0,0 +1,2 @@
ansible_port: "{{ vault_node003.ansible_port }}"
ansible_user: "{{ vault_node003.ansible_user }}"

View file

@ -4,3 +4,5 @@ all:
ansible_connection: local
node002:
ansible_host: node002.serguzim.net
node003:
ansible_host: node003.serguzim.net

5
_ansible/node003.yml Normal file
View file

@ -0,0 +1,5 @@
---
- name: Run roles for node003
hosts: node003
roles:
- minio

View file

@ -0,0 +1,7 @@
---
- name: Deploy {{ svc.name }}
tags:
- minio
- storage
block:
- import_tasks: deploy-common-service.yml

View file

@ -0,0 +1,34 @@
svc:
domain: "s3.serguzim.me"
name: minio
port: 9000
caddy_extra: |
@nocache {
query nocache=*
}
header @nocache "Cache-Control" "no-store, no-cache"
extra_svcs:
- domain: console.s3.serguzim.me
docker_host: minio
port: 9001
svc_env:
MINIO_SERVER_URL: "https://{{ svc.domain }}/"
MINIO_BROWSER_REDIRECT_URL: "https://console.{{ svc.domain }}"
MINIO_VOLUMES: "/data"
MINIO_ROOT_USER: "{{ vault_minio.user }}"
MINIO_ROOT_PASSWORD: "{{ vault_minio.pass }}"
compose:
watchtower: true
image: minio/minio
env: true
volumes:
- data:/data
file:
services:
app:
command: server --console-address ":9001"
volumes:
data: