-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alexander Maslov
committed
Dec 17, 2019
1 parent
15ad3a3
commit ed0b9b1
Showing
6 changed files
with
99 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
--- | ||
|
||
- name: Add sni support to legacy python installations | ||
- name: "purge minio" | ||
include_tasks: purge.yml | ||
when: minio_purge == "yes" | ||
|
||
- name: "add sni support to legacy python installations" | ||
include_tasks: python_sni.yml | ||
when: | ||
- ansible_os_family == 'Debian' | ||
- ansible_python_version is version_compare('2.6.0', '>=') | ||
- ansible_python_version is version_compare('2.7.9', '<') | ||
- minio_purge != "yes" | ||
|
||
- include_tasks: install-server.yml | ||
when: minio_install_server | ||
when: | ||
- minio_install_server | ||
- minio_purge != "yes" | ||
|
||
- include_tasks: install-client.yml | ||
when: minio_install_client | ||
when: | ||
- minio_install_client | ||
- minio_purge != "yes" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
- name: "stop minio service" | ||
service: | ||
name: minio | ||
state: stopped | ||
enabled: false | ||
ignore_errors: true | ||
|
||
- name: "remove minio systemd service" | ||
file: | ||
path: "{{ minio_service_systemd_path }}" | ||
state: "absent" | ||
when: ansible_service_mgr == "systemd" | ||
|
||
- name: "remove minio init service" | ||
file: | ||
path: "{{ minio_service_initd_path }}" | ||
state: "absent" | ||
when: ansible_service_mgr != "systemd" | ||
|
||
- name: "remove minio binary" | ||
file: | ||
path: "{{ item }}" | ||
state: "absent" | ||
with_items: | ||
- "{{ minio_server_bin }}" | ||
- "{{ minio_client_bin }}" | ||
|
||
- name: "remove minio user" | ||
user: | ||
name: "{{ minio_user }}" | ||
state: "absent" | ||
|
||
- name: "remove minio group" | ||
group: | ||
name: "{{ minio_group }}" | ||
state: "absent" | ||
|
||
- name: "remove minio python sni support system packages" | ||
package: | ||
name: "{{ item }}" | ||
state: "absent" | ||
with_items: "{{ minio_python_sni_packages }}" | ||
when: minio_purge_python_sni == "yes" | ||
|
||
- name: "remove minio python sni support pip packages" | ||
pip: | ||
name: "{{ item }}" | ||
state: "absent" | ||
with_items: "{{ minio_python_sni_pip_dependencies }}" | ||
ignore_errors: true | ||
when: minio_purge_python_sni == "yes" | ||
|
||
- name: "remove minio data storage directories" | ||
file: | ||
path: "{{ item }}" | ||
state: "absent" | ||
with_items: "{{ minio_server_datadirs }}" | ||
when: minio_purge_data == "yes" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters