homeserver/roles/mgrote_minio_configure/tasks/main.yml

39 lines
1.2 KiB
YAML
Raw Normal View History

2024-11-09 10:06:25 +01:00
---
2024-11-09 11:06:22 +01:00
#- name: include client tasks # einkommentieren!!!!!!!!!!!!!!
# ansible.builtin.include_tasks: client.yml
2024-11-09 10:13:33 +01:00
2024-11-09 18:49:50 +01:00
2024-11-09 10:13:33 +01:00
- name: ensure alias exists
2024-11-09 18:45:03 +01:00
# ansible.builtin.command: "{{ minio_client_bin }} --dp alias set {{ minio_root_alias }} {{ minio_url }} {{ minio_root_access_key }} {{ minio_root_secret_key }}"
dubzland.minio.minio_alias:
2024-11-09 18:45:31 +01:00
name: "{{ minio_root_alias }}"
url: "{{ minio_url }}"
access_key: "{{ minio_root_access_key }}"
secret_key: "{{ minio_root_secret_key }}"
2024-11-09 18:45:03 +01:00
state: present
2024-11-09 10:16:52 +01:00
2024-11-09 18:49:50 +01:00
- name: include policy tasks
ansible.builtin.include_tasks: policy.yml
2024-11-09 10:16:52 +01:00
- name: include user tasks
ansible.builtin.include_tasks: user.yml
2024-11-09 10:49:03 +01:00
- name: include bucket tasks
ansible.builtin.include_tasks: bucket.yml
- name: include policy tasks
ansible.builtin.include_tasks: policy.yml
2024-11-09 11:25:04 +01:00
- name: get all access keys (is set to true)
ansible.builtin.command: "{{ minio_client_bin }} --dp admin accesskey list {{ minio_root_alias }} --all"
when: minio_print_keys
register: all_keys
- name: geprintt all access keys (is set to true)
ansible.builtin.debug:
msg: "{{ all_keys.stdout_lines }}"
when: minio_print_keys
2024-11-09 18:49:50 +01:00
# https://galaxy.ansible.com/ui/repo/published/dubzland/minio/content/module/minio_alias/