Fix and improve checks when ceph_origin == 'distro'

pull/409/head
Emilien Mantel 2015-09-21 18:04:19 +02:00
parent c8e4eac98f
commit bd7d776e3b
1 changed files with 9 additions and 1 deletions

View File

@ -1,8 +1,16 @@
---
- name: make sure an installation origin was chosen
fail:
msg: "choose an installation origin"
when:
ceph_origin != 'upstream' and
ceph_origin != 'distro'
- name: make sure an installation source was chosen
fail:
msg: "choose an installation source or read https://github.com/ceph/ceph-ansible/wiki"
msg: "choose an upstream installation source or read https://github.com/ceph/ceph-ansible/wiki"
when:
ceph_origin == 'upstream' and
not ceph_stable and
not ceph_dev and
not ceph_stable_ice and