From 0ddff572b2fc6fd6b0a999bcc4b54250335c70be Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Mon, 23 May 2016 20:21:55 +0200 Subject: [PATCH] ansible: Enforce rights on /home/jenkins-build On a fresh new image, the /home/jenkins-build relies to root.root making ccache failing at creating a file here. That means that anything trying to write a file in the home dir will fail. This patch simply enfore the user/group of the home dir --- ansible/slave.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/slave.yml b/ansible/slave.yml index 8e78ffd9..7b7dfbad 100644 --- a/ansible/slave.yml +++ b/ansible/slave.yml @@ -34,8 +34,8 @@ - name: ensure the build dir exists file: path=/home/{{ jenkins_user }}/build state=directory owner={{ jenkins_user }} - - name: ensure the build dir has the right owner permissions - file: path=/home/{{ jenkins_user }}/build state=directory owner={{ jenkins_user }} + - name: ensure the home dir has the right owner permissions + file: path=/home/{{ jenkins_user }} state=directory owner={{ jenkins_user }} group={{ jenkins_user }} recurse=yes - name: Install RPM requirements sudo: yes -- 2.47.3