From f9e0f025b67a04b6fb2ddd1737990430fdb18849 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sat, 9 Nov 2024 19:21:36 +0100 Subject: [PATCH] ff --- roles/mgrote_minio_configure/tasks/policy.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/roles/mgrote_minio_configure/tasks/policy.yml b/roles/mgrote_minio_configure/tasks/policy.yml index 37336b49..19513e01 100644 --- a/roles/mgrote_minio_configure/tasks/policy.yml +++ b/roles/mgrote_minio_configure/tasks/policy.yml @@ -8,20 +8,12 @@ group: root mode: '0644' -- name: create needed files - ansible.builtin.file: - path: "{{ minio_config_dir }}/{{ item.name }}" - state: touch - owner: root - group: root - mode: '0644' - loop: "{{ minio_policies }}" - - name: create policy files ansible.builtin.blockinfile: path: "{{ minio_config_dir }}/{{ item.name }}" block: "{{ item.policy }}" state: present + create: true loop: "{{ minio_policies }}" - name: setup minio policies