---
- name: Try to detect ands_data_path
  set_fact: ands_data_path="{{ item.mount }}"
  with_items: "{{ ansible_mounts }}"
  no_log: true
  when: 
    - not ands_data_path is defined
    - ansible_lvm.lvs[ands_data_lv] is defined
    - ansible_lvm.lvs[ands_data_lv].size_g|int > ( ands_data_device_threshold | default(ands_data_device_default_threshold) )
    - item.device == ands_data_dev