]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
override ceph_release with ceph_stable_release
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 22 Jan 2019 13:25:45 +0000 (14:25 +0100)
committerSébastien Han <seb@redhat.com>
Tue, 22 Jan 2019 14:53:32 +0000 (15:53 +0100)
when `ceph_origin` is set to `'repository'` and `ceph_repository` to
`'community'` we need to ensure `ceph_release` reflect
`ceph_stable_release`.

4a3f180f9d29d5a31468ebb3d1c5f31a53a93960 simply removed the override
while it should just have to be run only when the condition mentioned
above is satisfied.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-common/tasks/main.yml

index 6f13233312795c9e33685c4ce19d3b3c1a2e5dcf..447ac6e1f17007f4cc4405ab7a7082cbef370d64 100644 (file)
   tags:
     - always
 
+- name: set_fact ceph_release - override ceph_release with ceph_stable_release
+  set_fact:
+    ceph_release: "{{ ceph_stable_release }}"
+  when:
+    - ceph_origin == 'repository'
+  tags:
+    - always
+
 - name: include facts_mon_fsid.yml
   include_tasks: facts_mon_fsid.yml
   run_once: true