homeserver/roles/mgrote_minio_configure/tasks/user.yml

20 lines
1.4 KiB
YAML
Raw Normal View History

2024-11-09 10:16:52 +01:00
---
2024-11-09 18:49:50 +01:00
- name: Add a Minio user
dubzland.minio.minio_user:
access_key: "{{ item.name }}"
secret_key: "{{ item.secret }}"
auth:
access_key: "{{ minio_root_access_key }}"
secret_key: "{{ minio_root_secret_key }}"
url: "{{ minio_url }}"
state: "{{ item.state | default('present') }}"
# policy:
2024-11-09 10:16:52 +01:00
loop: "{{ minio_users }}"
2024-11-09 10:45:17 +01:00
2024-11-09 19:13:15 +01:00
# bug:delegate to geht nciht
# TASK [mgrote_minio_configure : Add a Minio user] ***************************************************************************************************************************************************************failed: [docker10.mgrote.net -> localhost] (item={'name': 'testuser5', 'secret': 'hallowelt', 'state': 'present', 'policies': ['testbucket1_rw']}) => {"ansible_loop_var": "item", "changed": false, "item": {"name": "testuser5", "policies": ["testbucket1_rw"], "secret": "hallowelt", "state": "present"}, "msg": "Failed to import the required Python library (minio) on 398016b0e4b9's Python /usr/local/bin/python3. See https://min.io/docs/minio/linux/developers/python/minio-py.html for more info. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}
2024-11-09 11:00:18 +01:00
# no_log überall bei keys und users
# linter
# succssfu/changed_when
2024-11-09 11:14:58 +01:00
# state absent einbauen