Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ minio_secret_key: ""
# Switches to enable/disable the Minio server and/or Minio client installation.
minio_install_server: true
minio_install_client: true

# Switches Minio installation source: allowed is one of ['download', 'repo']
minio_install_source: download
8 changes: 8 additions & 0 deletions tasks/install-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,13 @@
checksum: "sha256:{{ _minio_client_checksum }}"
register: _download_client
until: _download_client is succeeded
when: minio_install_source == "download"
retries: 5
delay: 2

- name: Install the latest version of Minio from a repository
ansible.builtin.package:
name:
- mcli
state: latest
when: minio_install_source == "repo"
8 changes: 8 additions & 0 deletions tasks/install-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,18 @@
checksum: "sha256:{{ _minio_server_checksum }}"
register: _download_server
until: _download_server is succeeded
when: minio_install_source == "download"
retries: 5
delay: 2
notify: restart minio

- name: Install the latest version of Minio server from a repository
ansible.builtin.package:
name:
- minio
state: latest
when: minio_install_source == "repo"

- name: Generate the Minio server envfile
template:
src: minio.env.j2
Expand Down