user
This commit is contained in:
parent
2c9fa7e0b9
commit
ef5b01b10e
3 changed files with 16 additions and 1 deletions
|
@ -3,3 +3,11 @@ minio_root_access_key:
|
||||||
minio_root_secret_key:
|
minio_root_secret_key:
|
||||||
minio_root_alias: minio_ansible_root
|
minio_root_alias: minio_ansible_root
|
||||||
minio_url: https://s3.mgrote.net
|
minio_url: https://s3.mgrote.net
|
||||||
|
|
||||||
|
# --dp ausschreiben
|
||||||
|
|
||||||
|
minio_users:
|
||||||
|
- name: testuser5
|
||||||
|
secret: hallowelt
|
||||||
|
- name: testuser6
|
||||||
|
secret: hallowelt2
|
||||||
|
|
|
@ -3,4 +3,7 @@
|
||||||
ansible.builtin.include_tasks: client.yml
|
ansible.builtin.include_tasks: client.yml
|
||||||
|
|
||||||
- name: ensure alias exists
|
- 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
|
||||||
|
|
|
@ -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 }}"
|
Loading…
Reference in a new issue