From 183ef8e9801653fbb960e690f9188ce3c9d4ee70 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sat, 9 Nov 2024 11:25:04 +0100 Subject: [PATCH] ff --- roles/mgrote_minio_configure/tasks/main.yml | 10 ++++++++++ roles/mgrote_minio_configure/tasks/user.yml | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/roles/mgrote_minio_configure/tasks/main.yml b/roles/mgrote_minio_configure/tasks/main.yml index 948038ac..d1b98f76 100644 --- a/roles/mgrote_minio_configure/tasks/main.yml +++ b/roles/mgrote_minio_configure/tasks/main.yml @@ -16,3 +16,13 @@ - name: include policy tasks ansible.builtin.include_tasks: policy.yml + +- name: get all access keys (is set to true) + ansible.builtin.command: "{{ minio_client_bin }} --dp admin accesskey list {{ minio_root_alias }} --all" + when: minio_print_keys + register: all_keys + +- name: geprintt all access keys (is set to true) + ansible.builtin.debug: + msg: "{{ all_keys.stdout_lines }}" + when: minio_print_keys diff --git a/roles/mgrote_minio_configure/tasks/user.yml b/roles/mgrote_minio_configure/tasks/user.yml index 5f2554d0..f5df2e53 100644 --- a/roles/mgrote_minio_configure/tasks/user.yml +++ b/roles/mgrote_minio_configure/tasks/user.yml @@ -44,16 +44,6 @@ when: "'Access Keys:' not in item.stdout" register: new_keys -- name: get all access keys (is set to true) - ansible.builtin.command: "{{ minio_client_bin }} --dp admin accesskey list {{ minio_root_alias }} --all" - when: minio_print_keys - register: all_keys - -- name: geprintt all access keys (is set to true) - ansible.builtin.debug: - msg: "{{ all_keys.stdout_lines }}" - when: minio_print_keys -# verschieben ans ende