homelab/roles/minio/tasks/main.yml

33 lines
801 B
YAML
Raw Normal View History

2024-09-29 18:04:34 +05:00
---
- name: Create minio volume
become: true
community.docker.docker_volume:
name: minio
- 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-09-29 18:04:34 +05:00
volumes:
- minio:/data
ports:
- 127.0.0.1:3003:9001
- 127.0.0.1:9000:9000
env:
MINIO_ROOT_USER: "{{ minio_root_user }}"
MINIO_ROOT_PASSWORD: "{{ minio_root_password }}"
MINIO_VOLUMES: /data
restart_policy: unless-stopped
- name: Install rclone
become: true
ansible.builtin.apt:
name: rclone