mirror of https://github.com/ceph/ceph-ansible.git
15 lines
441 B
YAML
15 lines
441 B
YAML
|
---
|
||
|
- name: include stat_ceph_files.yml
|
||
|
include_tasks: stat_ceph_files.yml
|
||
|
|
||
|
- name: fail if we find existing cluster files
|
||
|
fail:
|
||
|
msg: "looks like no cluster is running but ceph files are present, please remove them"
|
||
|
with_together:
|
||
|
- "{{ ceph_config_keys }}"
|
||
|
- "{{ statconfig.results }}"
|
||
|
when:
|
||
|
- inventory_hostname == groups.get(mon_group_name)
|
||
|
- item.1.stat.exists
|
||
|
- not ceph_current_status.get('rc', 1) == 0
|