homelab/roles/minio/tasks/main.yml
2024-09-29 18:04:34 +05:00

31 lines
779 B
YAML

---
- 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
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