This commit is contained in:
fabio 2021-12-01 17:34:07 -05:00 committed by GitHub
commit a8419d82bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 0 deletions

View File

@ -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

View File

@ -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"

View File

@ -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