From: Erwan Velu Date: Mon, 23 May 2016 18:21:55 +0000 (+0200) Subject: ansible: Enforce rights on /home/jenkins-build X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F394%2Fhead;p=ceph-build.git 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 --- 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