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>
pull/3481/head
Guillaume Abrioux 2019-01-22 14:25:45 +01:00 committed by Sébastien Han
parent edfdc49488
commit 0bfefdd5bc
1 changed files with 8 additions and 0 deletions

View File

@ -44,6 +44,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