override ceph_release with ceph_stable_release

when `ceph_origin` is set to `'repository'` and `ceph_repository` to
`'community'` we need to ensure `ceph_release` reflect
`ceph_stable_release`.

4a3f180f9d 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>
(cherry picked from commit 0bfefdd5bc)
pull/3543/head
Guillaume Abrioux 2019-01-22 14:25:45 +01:00 committed by mergify[bot]
parent e29cdd0a61
commit af17e0dfbb
1 changed files with 8 additions and 0 deletions

View File

@ -43,6 +43,14 @@
tags: tags:
- always - 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 - name: include facts_mon_fsid.yml
include_tasks: facts_mon_fsid.yml include_tasks: facts_mon_fsid.yml
run_once: true run_once: true