homelab/roles/minio/tasks/main.yml

29 lines
763 B
YAML
Raw Normal View History

2024-09-29 18:04:34 +05:00
---
- name: Create minio network
become: true
community.docker.docker_network:
name: minio
- name: Run minio container
become: true
community.docker.docker_container:
name: minio
image: minio/minio:{{ minio_version }}
command: ["minio", "server", "--console-address", ":9001"]
networks:
- name: minio
2024-10-14 23:58:06 +05:00
- name: haproxy
2024-10-16 10:46:11 +05:00
- name: monitoring
2024-09-29 18:04:34 +05:00
volumes:
2024-10-16 00:04:04 +05:00
- /mnt/hdd/minio:/data
2024-09-29 18:04:34 +05:00
env:
MINIO_ROOT_USER: "{{ minio_root_user }}"
MINIO_ROOT_PASSWORD: "{{ minio_root_password }}"
MINIO_VOLUMES: /data
2024-10-16 10:46:11 +05:00
MINIO_PROMETHEUS_URL: http://prometheus:9090
MINIO_PROMETHEUS_JOB_ID: minio
2024-09-29 18:04:34 +05:00
restart_policy: unless-stopped
- name: Install rclone
become: true
ansible.builtin.apt:
name: rclone