From 65c327c25240e220cb6427aa772bb5fa5ee73444 Mon Sep 17 00:00:00 2001 From: Saibotk Date: Sat, 9 Nov 2024 05:24:05 +0100 Subject: [PATCH] fix(penpot): asset dir permissions --- roles/penpot/tasks/main.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/roles/penpot/tasks/main.yml b/roles/penpot/tasks/main.yml index de817cc..37ec899 100644 --- a/roles/penpot/tasks/main.yml +++ b/roles/penpot/tasks/main.yml @@ -46,10 +46,21 @@ setype: "container_file_t" with_items: - "{{ penpot_database_location }}" - - "{{ penpot_asset_location }}" - "{{ penpot_redis_location }}" become: true +- name: Create asset directories + ansible.builtin.file: + path: "{{ item }}" + state: directory + setype: "container_file_t" + mode: "0750" + owner: "1001" + group: "root" + with_items: + - "{{ penpot_asset_location }}" + become: true + - name: Deploy docker-compose.yml ansible.builtin.template: src: "docker-compose.yml"