From 2c9fa7e0b93f2a487f2037200c039586186accfc Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sat, 9 Nov 2024 10:13:33 +0100 Subject: [PATCH] root --- roles/mgrote_minio_configure/defaults/main.yml | 4 ++++ roles/mgrote_minio_configure/tasks/main.yml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/roles/mgrote_minio_configure/defaults/main.yml b/roles/mgrote_minio_configure/defaults/main.yml index ed97d539..dda78b5e 100644 --- a/roles/mgrote_minio_configure/defaults/main.yml +++ b/roles/mgrote_minio_configure/defaults/main.yml @@ -1 +1,5 @@ --- +minio_root_access_key: +minio_root_secret_key: +minio_root_alias: minio_ansible_root +minio_url: https://s3.mgrote.net diff --git a/roles/mgrote_minio_configure/tasks/main.yml b/roles/mgrote_minio_configure/tasks/main.yml index 089e2b56..e05307dd 100644 --- a/roles/mgrote_minio_configure/tasks/main.yml +++ b/roles/mgrote_minio_configure/tasks/main.yml @@ -1,3 +1,6 @@ --- - name: include client tasks ansible.builtin.include_tasks: client.yml + +- name: ensure alias exists + ansible.builtin.command: "{{ minio_client_bin }} alias set {{ minio_root_alias }} {{ minio_url }} {{ minio_root_access_key }} {{ minio_root_secret_key }}"