MinIO Remove Role¶
Removes MinIO object storage server from the target host.
Warning¶
This is a destructive operation! This role will:
Stop and disable the MinIO service
Remove MinIO configuration files
Optionally remove all data directories
Optionally remove the system user
Optionally remove MinIO binaries
Usage¶
- hosts: server
become: true
roles:
- role: local.ops_library.minio_remove
vars:
minio_confirm_removal: true # REQUIRED
minio_data_dirs:
- /mnt/cryptdata/minio/data # Must match deployment
Role Variables¶
Variable |
Default |
Description |
|---|---|---|
|
|
REQUIRED - Must be |
|
|
Remove data directories |
|
|
Remove system user and group |
|
|
Remove minio and mc binaries |
|
|
Data directories to remove |
Data Preservation¶
To preserve data while removing the service:
minio_confirm_removal: true
minio_remove_data: false
minio_remove_user: false
Example: Complete Removal¶
# Via ops-control
just remove-one minio
# Direct with ansible-playbook
ansible-playbook -i inventory playbooks/remove-minio.yml \
-e minio_confirm_removal=true
License¶
MIT