]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
find the rhcs version right before setting is_ceph_infernalis 607/head
authorAndrew Schoen <aschoen@redhat.com>
Mon, 7 Mar 2016 20:50:05 +0000 (14:50 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 7 Mar 2016 20:50:05 +0000 (14:50 -0600)
Where it was located before meant it might be skipped if you don't run
tasks with the package-install tag. This fixes the situation where you
want to configure an rhcs node, but do not want to do any package
installs.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/ceph-common/tasks/installs/install_on_redhat.yml
roles/ceph-common/tasks/main.yml

index 34aa0160f199219af7901be2ee85fde1df313260..670e529ef6693b8028bf779f209267b8bd5bfee9 100644 (file)
    - rbd_client_log_path
    - rbd_client_admin_socket_path
   when: rbd_client_directories
-
-- name: get ceph rhcs version
-  shell: rpm -q --qf "%{version}\n" ceph-common | cut -f1,2 -d '.'
-  changed_when: false
-  failed_when: false
-  register: rh_storage_version
-  when: ceph_stable_rh_storage
index cabadac12d2be88e9279700b94d19a0ffdd97f88..98d42ad05aafa2402a312ff46edf73b2262839a5 100644 (file)
   tags:
     - package-install
 
+- name: get ceph rhcs version
+  shell: rpm -q --qf "%{version}\n" ceph-common | cut -f1,2 -d '.'
+  changed_when: false
+  failed_when: false
+  register: rh_storage_version
+  when: ceph_stable_rh_storage
+
 # NOTE (leseb): be careful with the following
 # somehow the YAML syntax using "is_ceph_infernalis: {{"
 # does NOT work, so we keep this syntax styling...