ceph-ansible/roles/ceph-docker-common/tasks/checks.yml

11 lines
298 B
YAML

---
- include: 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: item.1.stat.exists == true