ceph-ansible/roles/ceph-mon/tasks/rbd_pool_df.yml

15 lines
377 B
YAML

---
- name: verify that rbd pool exist
fail:
msg: "rbd pool does not exist in rbd_pool_df"
when: rbd_pool_exist.rc == 0
- name: check rbd pool usage
shell: |
"{{ docker_exec_cmd }} ceph --connect-timeout 5 --cluster {{ cluster }} df | awk '/rbd/ {print $3}'"
changed_when: false
failed_when: false
check_mode: true
run_once: true
register: rbd_pool_df