Michael Grote
2b48b9fe6f
friedhof/mgrote_minio_configure/tasks/bucket.yml friedhof/mgrote_minio_configure/tasks/client.yml friedhof/mgrote_minio_configure/tasks/main.yml friedhof/mgrote_minio_configure/tasks/policy.yml friedhof/mgrote_minio_configure/templates/policy_ro.j2 friedhof/mgrote_minio_configure/templates/policy_rw.j2 group_vars/docker.yml host_vars/docker10.mgrote.net.yml playbooks/3_service/docker.yml Signed-off-by: Michael Grote <michael.grote@posteo.de>
18 lines
532 B
YAML
18 lines
532 B
YAML
---
|
|
- name: Setup buckets
|
|
dubzland.minio.minio_bucket:
|
|
name: "{{ item.name }}"
|
|
auth:
|
|
access_key: "{{ minio_root_access_key }}"
|
|
secret_key: "{{ minio_root_secret_key }}"
|
|
url: "{{ minio_url }}"
|
|
state: "{{ item.state | default('present') }}"
|
|
loop: "{{ minio_buckets }}"
|
|
delegate_to: localhost
|
|
|
|
- name: Deletion Info
|
|
ansible.builtin.debug:
|
|
msg: "Deletion only possible with empty bucket ({{ item.name }})"
|
|
when: '"absent" in item.state'
|
|
loop: "{{ minio_buckets }}"
|
|
delegate_to: localhost
|