This commit is contained in:
Michael Grote 2024-11-09 10:16:52 +01:00
parent 2c9fa7e0b9
commit ef5b01b10e
3 changed files with 16 additions and 1 deletions

View file

@ -3,3 +3,11 @@ minio_root_access_key:
minio_root_secret_key:
minio_root_alias: minio_ansible_root
minio_url: https://s3.mgrote.net
# --dp ausschreiben
minio_users:
- name: testuser5
secret: hallowelt
- name: testuser6
secret: hallowelt2

View file

@ -3,4 +3,7 @@
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 }}"
ansible.builtin.command: "{{ minio_client_bin }} --dp alias set {{ minio_root_alias }} {{ minio_url }} {{ minio_root_access_key }} {{ minio_root_secret_key }}"
- name: include user tasks
ansible.builtin.include_tasks: user.yml

View file

@ -0,0 +1,4 @@
---
- name: setup minio users
ansible.builtin.command: "{{ minio_client_bin }} --dp admin user add {{ minio_root_alias }} {{ item.user }} {{ item.secret }}"
loop: "{{ minio_users }}"