From: Alfredo Deza Date: Thu, 1 Sep 2016 17:29:04 +0000 (-0400) Subject: ansible: slave playbook should define a global gitconfig that makes sense for user... X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=30219340132e439b2d42c089c5b419032f7f99e8;p=ceph-build.git ansible: slave playbook should define a global gitconfig that makes sense for user and email Signed-off-by: Alfredo Deza --- diff --git a/ansible/examples/slave.yml b/ansible/examples/slave.yml index 7164b515..2fdf2ca6 100644 --- a/ansible/examples/slave.yml +++ b/ansible/examples/slave.yml @@ -153,6 +153,14 @@ line: '%dist .el{{ ansible_distribution_major_version }}' when: ansible_pkg_mgr == "yum" + - name: ensure the gitconfig file exists + shell: printf "[user]\name=Ceph CI\nemail=ceph-release-team@redhat.com\n" > /home/{{ jenkins_user }}/.gitconfig + + - name: ensure the gitconfig file has right permissions + file: + path: "/home/{{ jenkins_user }}/.gitconfig" + owner: "{{ jenkins_user }}" + - name: ensure that the current host is in /etc/hosts. Yes this is a thing. sudo: true replace: