]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: slave playbook should define a global gitconfig that makes sense for user... 456/head
authorAlfredo Deza <adeza@redhat.com>
Thu, 1 Sep 2016 17:29:04 +0000 (13:29 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 7 Sep 2016 16:16:35 +0000 (12:16 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ansible/examples/slave.yml

index 7164b5158638a7904fdfcf3d299eec208121c25f..2fdf2ca6667cf0a56dbd58f67cde84b1abcca17a 100644 (file)
         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: