diff --git a/roles/mgrote_minio_configure/tasks/policy.yml b/roles/mgrote_minio_configure/tasks/policy.yml index 7eaac35d..95f54c3e 100644 --- a/roles/mgrote_minio_configure/tasks/policy.yml +++ b/roles/mgrote_minio_configure/tasks/policy.yml @@ -36,7 +36,7 @@ - name: "remove old policy files" ansible.builtin.file: - path: "{{ minio_config_dir }}/{{ item.name }}_ro" + path: "{{ minio_config_dir }}/{{ item.name }}*" state: absent loop: "{{ minio_buckets }}" when: '"absent" in item.state'