From e0f057cd9673ba8db7355e81d273108882f17839 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sat, 9 Nov 2024 21:18:16 +0100 Subject: [PATCH] dsfg --- roles/mgrote_minio_configure/tasks/bucket.yml | 5 ++--- roles/mgrote_minio_configure/tasks/policy.yml | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/roles/mgrote_minio_configure/tasks/bucket.yml b/roles/mgrote_minio_configure/tasks/bucket.yml index 54bac9a5..e6849c9b 100644 --- a/roles/mgrote_minio_configure/tasks/bucket.yml +++ b/roles/mgrote_minio_configure/tasks/bucket.yml @@ -1,11 +1,10 @@ --- -- name: Ensure buckets exists +- 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') }}" + state: "{{ item.state }}" loop: "{{ minio_buckets }}" - # state mit default diff --git a/roles/mgrote_minio_configure/tasks/policy.yml b/roles/mgrote_minio_configure/tasks/policy.yml index 5b3a76fb..7eaac35d 100644 --- a/roles/mgrote_minio_configure/tasks/policy.yml +++ b/roles/mgrote_minio_configure/tasks/policy.yml @@ -34,7 +34,7 @@ ansible.builtin.command: "{{ minio_client_bin }} --dp admin policy create {{ minio_root_alias }} {{ item.name }}_rw {{ minio_config_dir }}/{{ item.name }}_rw" loop: "{{ minio_buckets }}" -- name: "remove old policies" +- name: "remove old policy files" ansible.builtin.file: path: "{{ minio_config_dir }}/{{ item.name }}_ro" state: absent