Skip to content

Commit

Permalink
[FIX] fixed bugs in minio uinstall and rhel
Browse files Browse the repository at this point in the history
  • Loading branch information
ismoilovdevml committed Sep 17, 2024
1 parent 8af11a9 commit 980b8b2
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 14 deletions.
43 changes: 43 additions & 0 deletions Ansible/minio/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 📋 MinIO Object Storage Installation Playbook

This playbook installs MinIO as a binary on servers using the **Single-Node Single-Drive** installation method.

## 🛠️ Usage

In the `vars.yml` file, the following variables should be defined:

```yml
---
minio_directory: /mnt/data
minio_admin_user: admin
minio_admin_user_password: wo#*4fd-LDSsgsa
```
# Install MinIO
Run the following command to install MinIO on your servers:
```bash
ansible-playbook -i inventory.ini ./install_minio.yml
```
# Clean up and Uninstall MinIO
To clean up and uninstall MinIO, use the following command:
```bash
ansible-playbook -i inventory.ini ./uninstall_minio.yml
```


# 💻 Supported Linux Operating Systems
* 🐧 **Debian:** 11,12
* 🐧 **Ubuntu:** 20.04,22.04
* 🐧 **RHEL:** 7,8
* 🐧 **Fedora:** 39,40

# ✅ Tested Operating Systems

***Debian:** 11,12
***Ubuntu:** 20.04,22.04
***RHEL:** 7,8

# ⚙️ Supported Ansible Versions
* ✅ ansible [core 2.16.3]
* ❗️ ansible [core 2.17.3] (compatibility issues)

> Note: The playbook assumes you are running Ansible as the `root` user.
File renamed without changes.
18 changes: 13 additions & 5 deletions Ansible/minio/uninstall_minio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,28 @@
vars_files:
- main.yml
tasks:

- name: Check if MinIO service exists
command: systemctl is-active --quiet minio
register: minio_service_status
failed_when: false
changed_when: false
ignore_errors: yes

- name: Stop and disable MinIO service
systemd:
- name: Stop and disable MinIO service if it exists
ansible.builtin.systemd:
name: minio
state: stopped
enabled: no
ignore_errors: yes
when: minio_service_status.rc == 0

- name: Remove MinIO service file
file:
path: /usr/lib/systemd/system/minio.service
state: absent

- name: Reload systemd daemon
systemd:
ansible.builtin.systemd:
daemon_reload: yes

- name: Remove MinIO binary
Expand All @@ -36,8 +43,9 @@
become: yes
file:
path: "{{ minio_directory }}"
state: absent
state: directory
recurse: yes
force: yes
ignore_errors: yes

- name: Remove MinIO data directory
Expand Down
File renamed without changes.
24 changes: 15 additions & 9 deletions Ansible/update-upgrade/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,20 @@ To run the playbook, use the following command:
ansible-playbook -i inventory.ini ./update_upgrade_tools.yml
```

💻 Supported Linux Operating Systems
* 🐧 Debian(11,12)
* 🐧 Ubuntu(20.04,22.04)
* 🐧 RHEL(7,8)
* 🐧 Fedora(39.40)
# 💻 Supported Linux Operating Systems
* 🐧 **Debian:** 11,12
* 🐧 **Ubuntu:** 20.04,22.04
* 🐧 **RHEL:** 7,8
* 🐧 **Fedora:** 39,40

✅ Tested Operating Systems
# ✅ Tested Operating Systems

* ✅Debian(11,12)
* ✅Ubuntu(20.04,22.04)
* ✅RHEL(7,8)
***Debian:** 11,12
***Ubuntu:** 20.04,22.04
***RHEL:** 7,8

# ⚙️ Supported Ansible Versions
* ✅ ansible [core 2.16.3]
* ❗️ ansible [core 2.17.3] (compatibility issues)

> Note: The playbook assumes you are running Ansible as the `root` user.

0 comments on commit 980b8b2

Please sign in to comment.