]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: modify configure.ac only when it exists for ceph releases
authorAlfredo Deza <adeza@redhat.com>
Tue, 11 Oct 2016 12:29:19 +0000 (08:29 -0400)
committerAlfredo Deza <adeza@redhat.com>
Tue, 11 Oct 2016 12:29:19 +0000 (08:29 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ansible/roles/ceph-release/tasks/main.yml

index 405e0673c42a1ffe9f9acef60b0158c3694e7efc..4dfd9dedaa2d6257d7dea5d7a032488f06488465 100644 (file)
 - name: git submodule update
   command: git submodule update --init chdir=ceph
 
-- name: replace the version in configure.ac
+- name: check if configure.ac exists (pre-kraken)
+  stat: path=ceph/configure.ac
+  register: configure_ac
+
+- name: replace the version in configure.ac (pre-kraken)
   lineinfile: dest=ceph/configure.ac
               regexp='^AC_INIT\(\[ceph\],'
               line='AC_INIT([ceph], [{{ version }}], [ceph-devel@vger.kernel.org])'
+  when: configure_ac.stat.exists
 
 - name: check if CMakeLists.txt exists
   stat: path=ceph/CMakeLists.txt