Fix ceph-ansible repo check

This commit fix the order of the "when" condition items when
the ceph-ansible repo is evaluated.

Change-Id: I5341dc3894aa672fda746cdd81e16712ee312c52
Closes-Bug: 1857460
(cherry picked from commit eb62c8f95e)
This commit is contained in:
Francesco Pantano 2020-01-07 09:02:20 +01:00
parent cb4899fd2f
commit dc4fd109a6
1 changed files with 1 additions and 1 deletions

View File

@ -30,6 +30,6 @@
fail:
msg: "Make sure ceph-ansible package is installed from {{ ceph_ansible_repo }}"
when:
- (repo.stdout | length == 0 or repo.stdout != "{{ ceph_ansible_repo }}")
- fail_without_ceph_ansible|default(false)|bool
- (repo.stdout | length > 0 or repo.stdout != "{{ ceph_ansible_repo }}")