2015-10-21 08:12:43 +08:00
|
|
|
---
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include stat_ceph_files.yml
|
|
|
|
include: stat_ceph_files.yml
|
2015-10-21 08:12:43 +08:00
|
|
|
|
|
|
|
- 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:
|
2016-11-03 17:16:33 +08:00
|
|
|
- "{{ ceph_config_keys }}"
|
2017-09-18 21:01:32 +08:00
|
|
|
- "{{ statconfig.results }}"
|
2017-09-15 06:48:53 +08:00
|
|
|
when:
|
2017-09-19 01:04:05 +08:00
|
|
|
- inventory_hostname == groups.get(mon_group_name)
|
2017-09-15 06:48:53 +08:00
|
|
|
- item.1.stat.exists == true
|
2017-09-19 01:04:05 +08:00
|
|
|
- ceph_health.stdout_lines | length == 0
|