homelab/roles/minio/tasks/main.yml

28 lines
763 B
YAML

---
- 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
- name: haproxy
- name: monitoring
volumes:
- /mnt/hdd/minio:/data
env:
MINIO_ROOT_USER: "{{ minio_root_user }}"
MINIO_ROOT_PASSWORD: "{{ minio_root_password }}"
MINIO_VOLUMES: /data
MINIO_PROMETHEUS_URL: http://prometheus:9090
MINIO_PROMETHEUS_JOB_ID: minio
restart_policy: unless-stopped
- name: Install rclone
become: true
ansible.builtin.apt:
name: rclone