setup minio automation #229

Merged
mg merged 114 commits from minio_automation into master 2024-11-09 22:00:58 +01:00
Showing only changes of commit 27186269e8 - Show all commits

View file

@ -1,24 +1,24 @@
--- ---
- name: Compose the Minio client download base url - name: Compose the Minio client download base url
set_fact: ansible.builtin.set_fact:
_minio_client_download_base_url: "https://dl.minio.io/client/mc/release/linux-amd64" _minio_client_download_base_url: "https://dl.minio.io/client/mc/release/linux-amd64"
- name: Compose the Minio client download url with lastest release - name: Compose the Minio client download url with lastest release
set_fact: ansible.builtin.set_fact:
_minio_client_download_url: "{{ _minio_client_download_base_url }}/mc" _minio_client_download_url: "{{ _minio_client_download_base_url }}/mc"
when: minio_client_release | length == 0 when: minio_client_release | length == 0
- name: "Compose the Minio client download url with release {{ minio_client_release }}" - name: "Compose the Minio client download url with release {{ minio_client_release }}"
set_fact: ansible.builtin.set_fact:
_minio_client_download_url: "{{ _minio_client_download_base_url }}/archive/mc.{{ minio_client_release }}" _minio_client_download_url: "{{ _minio_client_download_base_url }}/archive/mc.{{ minio_client_release }}"
when: minio_client_release | length > 0 when: minio_client_release | length > 0
- name: "Get the Minio client checksum for amd64 architecture" - name: "Get the Minio client checksum for amd64 architecture"
set_fact: ansible.builtin.set_fact:
_minio_client_checksum: "{{ lookup('url', _minio_client_download_url + '.sha256sum').split(' ')[0] }}" _minio_client_checksum: "{{ lookup('url', _minio_client_download_url + '.sha256sum').split(' ')[0] }}"
- name: Download the Minio client - name: Download the Minio client
get_url: ansible.builtin.get_url:
url: "{{ _minio_client_download_url }}" url: "{{ _minio_client_download_url }}"
dest: "{{ minio_client_bin }}" dest: "{{ minio_client_bin }}"
owner: "root" owner: "root"