From ec15cd44fc993cb88b1ab491aa5c2d982b498fc6 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sat, 9 Nov 2024 20:24:17 +0100 Subject: [PATCH] dd --- roles/mgrote_minio_configure/defaults/main.yml | 2 +- roles/mgrote_minio_configure/tasks/policy.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/mgrote_minio_configure/defaults/main.yml b/roles/mgrote_minio_configure/defaults/main.yml index 040e7a77..e5932e2a 100644 --- a/roles/mgrote_minio_configure/defaults/main.yml +++ b/roles/mgrote_minio_configure/defaults/main.yml @@ -22,7 +22,7 @@ minio_buckets: - name: testbucket1 - name: testbucket3 -minio_policies: +minio_policies: # pro nucket nur eine policy? - bucket: testbucket1 policy: rw - bucket: testbucket3 diff --git a/roles/mgrote_minio_configure/tasks/policy.yml b/roles/mgrote_minio_configure/tasks/policy.yml index fb3f4da0..ac633d4c 100644 --- a/roles/mgrote_minio_configure/tasks/policy.yml +++ b/roles/mgrote_minio_configure/tasks/policy.yml @@ -21,7 +21,9 @@ ansible.builtin.template: dest: "{{ minio_config_dir }}/{{ item.bucket }}_rw" src: policy_rw.j2 - state: present + owner: root + group: root + mode: '0644' loop: "{{ minio_policies }}" - name: setup minio policies