From 8b13f8fbcd6406a36d42b9f042b97b79132d4d13 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sat, 9 Nov 2024 10:54:39 +0100 Subject: [PATCH] gg --- roles/mgrote_minio_configure/tasks/user.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/mgrote_minio_configure/tasks/user.yml b/roles/mgrote_minio_configure/tasks/user.yml index 454f8df4..41cd1cce 100644 --- a/roles/mgrote_minio_configure/tasks/user.yml +++ b/roles/mgrote_minio_configure/tasks/user.yml @@ -1,6 +1,6 @@ --- - name: setup minio users - ansible.builtin.command: "{{ minio_client_bin }} --dp admin user add {{ minio_root_alias }} {{ item.user }} {{ item.secret }}" + ansible.builtin.command: "{{ minio_client_bin }} --dp admin user add {{ minio_root_alias }} {{ item.name }} {{ item.secret }}" loop: "{{ minio_users }}" register: users @@ -27,7 +27,7 @@ # 2. when not create one, else skip - name: get access keys - ansible.builtin.command: "{{ minio_client_bin }} --dp admin accesskey list {{ item.user }}" + ansible.builtin.command: "{{ minio_client_bin }} --dp admin accesskey list {{ item.name }}" loop: "{{ minio_users }}" register: keys @@ -36,7 +36,7 @@ msg: "{{ keys }}" - name: setup minio users - ansible.builtin.command: "{{ minio_client_bin }} --dp admin user add {{ minio_root_alias }} {{ item.user }} {{ item.secret }}" + ansible.builtin.command: "{{ minio_client_bin }} --dp admin user add {{ minio_root_alias }} {{ item.name }} {{ item.secret }}" loop: "{{ minio_users }}" when: keys # mehrere keys pro user?