mirror of https://github.com/ceph/ceph-ansible.git
find the rhcs version right before setting is_ceph_infernalis
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>pull/607/head
parent
ad6ebbcb32
commit
9f1b437e9d
|
@ -147,10 +147,3 @@
|
||||||
- rbd_client_log_path
|
- rbd_client_log_path
|
||||||
- rbd_client_admin_socket_path
|
- rbd_client_admin_socket_path
|
||||||
when: rbd_client_directories
|
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
|
|
||||||
|
|
|
@ -53,6 +53,13 @@
|
||||||
tags:
|
tags:
|
||||||
- package-install
|
- 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
|
# NOTE (leseb): be careful with the following
|
||||||
# somehow the YAML syntax using "is_ceph_infernalis: {{"
|
# somehow the YAML syntax using "is_ceph_infernalis: {{"
|
||||||
# does NOT work, so we keep this syntax styling...
|
# does NOT work, so we keep this syntax styling...
|
||||||
|
|
Loading…
Reference in New Issue