From 4d4fba313a7fae4bcf0692e8083ad1b7f50a1c97 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Mon, 28 Dec 2020 14:00:52 +0100 Subject: [PATCH] Set permissions to composer cache before calling composer install --- tasks/deploy/gitcomposer.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tasks/deploy/gitcomposer.yml b/tasks/deploy/gitcomposer.yml index f2625bf..fbe01f5 100644 --- a/tasks/deploy/gitcomposer.yml +++ b/tasks/deploy/gitcomposer.yml @@ -49,6 +49,15 @@ recurse: yes follow: no + - name: Set Permissions for current user on composer cache + file: + path: /usr/local/share/cache + owner: '{{ ansible_env.SUDO_USER|default("root") }}' + group: root + mode: u+rwX,g+rwX,o+rX + recurse: yes + follow: no + - name: Run Composer composer: command: install -- GitLab