From: Alfredo Deza Date: Tue, 11 Oct 2016 12:29:19 +0000 (-0400) Subject: ansible: modify configure.ac only when it exists for ceph releases X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=26a8fdd1efd67e79b3c2d7e0d5c476ba3bcc653d;p=ceph-build.git ansible: modify configure.ac only when it exists for ceph releases Signed-off-by: Alfredo Deza --- diff --git a/ansible/roles/ceph-release/tasks/main.yml b/ansible/roles/ceph-release/tasks/main.yml index 405e0673..4dfd9ded 100644 --- a/ansible/roles/ceph-release/tasks/main.yml +++ b/ansible/roles/ceph-release/tasks/main.yml @@ -31,10 +31,15 @@ - 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