boolean to force an upgrade

This commit is contained in:
Andrea Dell'Amico 2022-09-27 12:16:29 +02:00
parent f91a977452
commit 54a07f1951
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
3 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,8 @@ A role that installs min.io, <https://min.io/>.
The supported installation mode is *baremetal* and *distributed*.
minio is not installed from a package, but the binary is downloaded and placed into `/usr/local/bin`.
Set the `minio_upgrade_executable` to `True` if you want to upgrade an existing installation.
Role Variables
--------------
@ -16,6 +18,7 @@ minio_enabled: true
minio_binary: 'minio'
minio_binary_download: 'https://dl.min.io/server/minio/release/linux-amd64/{{ minio_binary }}'
minio_download_validate_certs: true
minio_upgrade_executable: false
minio_work_dir: /usr/local
minio_install_dir: '{{ minio_work_dir }}/bin'
minio_executable: '{{ minio_install_dir }}/{{ minio_binary }}'

View File

@ -4,6 +4,7 @@ minio_enabled: true
minio_binary: 'minio'
minio_binary_download: 'https://dl.min.io/server/minio/release/linux-amd64/{{ minio_binary }}'
minio_download_validate_certs: true
minio_upgrade_executable: false
minio_work_dir: /usr/local
minio_install_dir: '{{ minio_work_dir }}/bin'
minio_executable: '{{ minio_install_dir }}/{{ minio_binary }}'

View File

@ -38,6 +38,7 @@
url: '{{ minio_binary_download }}'
dest: '{{ minio_executable }}'
validate_certs: '{{ minio_download_validate_certs }}'
force: '{{ minio_upgrade_executable }}'
owner: root
group: root
mode: 0755