# question on LVM exists or not

**URL:** <https://forum.ansible.com/t/question-on-lvm-exists-or-not/36452>\
**Category:** Ansible Project\
**Created:** [March 16, 2022, 11:07pm UTC](https://forum.ansible.com/t/question-on-lvm-exists-or-not/36452 "2022-03-16T23:07:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![subbamma\_natla](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@subbamma\_natla](https://forum.ansible.com/u/subbamma_natla)\
**Post date:** [March 16, 2022, 11:07pm UTC](https://forum.ansible.com/t/question-on-lvm-exists-or-not/36452/1 "2022-03-16T23:07:43Z")

</div>

why am I getting output when " when: ansible\_facts[‘lvm’][‘lvs’][‘lv\_mysql’] is not defined"

---

<div class="post-metadata">

**Author:** ![jcpetro](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jcpetro](https://forum.ansible.com/u/jcpetro)\
**Post date:** [March 17, 2022, 1:45am UTC](https://forum.ansible.com/t/question-on-lvm-exists-or-not/36452/2 "2022-03-17T01:45:22Z")

</div>

Well,  
Someone else might have a clearer answer, but the way you coded it, the task would be skipped if ln\_mysql is not defined. Did you try adding some verbosity to the ansible-playbook command? When something like this happens to me, I go right for the -vvvv and that will usually point me in the right direction.

–John
