From 97aa8f51aea977d8e74f2b84c3640a8a0731fa18 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sat, 9 Nov 2024 21:25:17 +0100 Subject: [PATCH] info --- roles/mgrote_minio_configure/tasks/bucket.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/mgrote_minio_configure/tasks/bucket.yml b/roles/mgrote_minio_configure/tasks/bucket.yml index a76fb3f6..9c5c9c3d 100644 --- a/roles/mgrote_minio_configure/tasks/bucket.yml +++ b/roles/mgrote_minio_configure/tasks/bucket.yml @@ -8,3 +8,9 @@ url: "{{ minio_url }}" state: "{{ item.state | default('present') }}" # löschen geht nur mit leerem Bucket loop: "{{ minio_buckets }}" + +- name: Deletion Info + ansible.builtin.debug: + msg: "Deletion only possible with empty bucket ({{ item.name }})" + when: '"absent" in item.state' + loop: "{{ minio_buckets }}"