]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
do not use files as prado does not support them yet 295/head
authorAlfredo Deza <adeza@redhat.com>
Thu, 14 Jan 2016 16:55:28 +0000 (11:55 -0500)
committerAlfredo Deza <adeza@redhat.com>
Thu, 14 Jan 2016 16:55:28 +0000 (11:55 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ansible/slave.yml.j2

index 73114f714340a967576c185e1ca286c4b0c7be1e..341772725d396d9fee47c0d354310dff703602a3 100644 (file)
       file: path=/home/{{ jenkins_user }}/build state=directory owner={{ jenkins_user }}
 
     - name: ensure the rpmmacros file exists to fix centos builds
-      template:
-         src: files/rpmmacros.j2
-         dest: "/home/{{ jenkins_user }}/.rpmmacros"
-         owner: "{{ jenkins_user }}"
+      file: path="/home/{{ jenkins_user }}/.rpmmacros" owner="{{ jenkins_user }}" state=touch
+
+    - name: write the rpmmacros needed in centos
+      lineinfile:
+        dest: "/home/{{ jenkins_user }}/.rpmmacros"
+        regexp: '^%dist'
+        line: '%dist .el{{ ansible_lsb.major_release }}'
       when: ansible_pkg_mgr  == "yum"
 
     - name: Install RPM requirements