homeserver/roles/mgrote_minio_configure/tasks/main.yml
2024-11-09 18:50:36 +01:00

38 lines
1.2 KiB
YAML

---
#- name: include client tasks # einkommentieren!!!!!!!!!!!!!!
# ansible.builtin.include_tasks: client.yml
- name: ensure alias exists
# 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:
name: "{{ minio_root_alias }}"
url: "{{ minio_url }}"
access_key: "{{ minio_root_access_key }}"
secret_key: "{{ minio_root_secret_key }}"
state: present
- name: include user tasks
ansible.builtin.include_tasks: user.yml
- name: include policy tasks
ansible.builtin.include_tasks: policy.yml
- name: include bucket tasks
ansible.builtin.include_tasks: bucket.yml
- name: include policy tasks
ansible.builtin.include_tasks: policy.yml
- 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
# https://galaxy.ansible.com/ui/repo/published/dubzland/minio/content/module/minio_alias/