setup minio automation #229
1 changed files with 3 additions and 3 deletions
|
@ -32,11 +32,11 @@
|
||||||
loop: "{{ minio_users }}"
|
loop: "{{ minio_users }}"
|
||||||
register: keys
|
register: keys
|
||||||
|
|
||||||
- name: debug
|
- name: Debug: Print users with access keys
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "{{ keys }}"
|
msg: "User {{ item.item.name }} has access keys: {{ item.stdout }}"
|
||||||
when: '"Access Keys:" in keys.item.stdout'
|
|
||||||
loop: "{{ keys.results }}"
|
loop: "{{ keys.results }}"
|
||||||
|
when: "'Access Keys:' in item.stdout"
|
||||||
|
|
||||||
- name: setup minio users
|
- name: setup minio users
|
||||||
ansible.builtin.command: "{{ minio_client_bin }} --dp admin user add {{ minio_root_alias }} {{ item.name }} {{ item.secret }}"
|
ansible.builtin.command: "{{ minio_client_bin }} --dp admin user add {{ minio_root_alias }} {{ item.name }} {{ item.secret }}"
|
||||||
|
|
Loading…
Reference in a new issue