gg
This commit is contained in:
parent
1b20b10c2b
commit
8b13f8fbcd
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: setup minio users
|
- 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 }}"
|
loop: "{{ minio_users }}"
|
||||||
register: users
|
register: users
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
# 2. when not create one, else skip
|
# 2. when not create one, else skip
|
||||||
|
|
||||||
- name: get access keys
|
- 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 }}"
|
loop: "{{ minio_users }}"
|
||||||
register: keys
|
register: keys
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
msg: "{{ keys }}"
|
msg: "{{ keys }}"
|
||||||
|
|
||||||
- name: setup minio users
|
- 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 }}"
|
loop: "{{ minio_users }}"
|
||||||
when: keys
|
when: keys
|
||||||
# mehrere keys pro user?
|
# mehrere keys pro user?
|
||||||
|
|
Loading…
Reference in a new issue