2015-10-21 08:12:43 +08:00
|
|
|
---
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include stat_ceph_files.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
include_tasks: 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)
|
2018-11-01 21:02:55 +08:00
|
|
|
- item.1.stat.exists
|
2017-09-19 01:04:05 +08:00
|
|
|
- ceph_health.stdout_lines | length == 0
|