Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 273436e1 authored by Nicolas's avatar Nicolas
Browse files

feat: add minio playbook

parent 42cf0e03
No related branches found
No related tags found
No related merge requests found
- name: "Install Minio"
hosts:
- minio1
- minio2
- minio3
vars:
minio_admin_user: admin
minio_admin_password: <resultat-de-la-commande-ansible-vault>
minio_volumes: "http://minio{1...3}.mon-reseau-local.lan:9000/mnt/disk{1...3}/minio"
minio_loadbalancer_url: "http://minio.mon-reseau-local.lan:9000"
minio_browser_redirect_url: "http://minio.mon-reseau-local.lan:9001"
tasks:
- name: Check file exists
stat:
path: "/tmp/minio.deb"
register: file_info
- name: Download Minio
get_url:
url: https://dl.min.io/server/minio/release/linux-amd64/archive/minio_20231106222608.0.0_amd64.deb
dest: /tmp/minio.deb
when: not file_info.stat.exists
- name: Install Minio
apt:
deb: /tmp/minio.deb
become: yes
when: not file_info.stat.exists
- name: Create group
group:
name: minio-user
state: present
- name: Create user
user:
name: minio-user
group: minio-user
state: present
createhome: no
system: true
- name: Copy Minio conf
template:
src: templates/minio.conf.j2
dest: /etc/default/minio
- name: Enable Minio service
systemd:
name: minio
enabled: yes
- name: Start Minio service
systemd:
name: minio
state: restarted
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment