From 30219340132e439b2d42c089c5b419032f7f99e8 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 1 Sep 2016 13:29:04 -0400 Subject: [PATCH] ansible: slave playbook should define a global gitconfig that makes sense for user and email Signed-off-by: Alfredo Deza --- ansible/examples/slave.yml | 8 ++++++++ 1 file changed, 8 insertions(+) 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: -- 2.39.5