# Issue with unmount of volume

**URL:** <https://forum.ansible.com/t/issue-with-unmount-of-volume/29864>\
**Category:** Ansible Project\
**Created:** [March 12, 2019, 6:18am UTC](https://forum.ansible.com/t/issue-with-unmount-of-volume/29864 "2019-03-12T06:18:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthick\_Thanigaiman](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@Karthick\_Thanigaiman](https://forum.ansible.com/u/Karthick_Thanigaiman)\
**Post date:** [March 12, 2019, 6:18am UTC](https://forum.ansible.com/t/issue-with-unmount-of-volume/29864/1 "2019-03-12T06:18:46Z")

</div>

Hi,

I have my facts as like below to unmount a file system in my EC2 via ansible. the ansible playbook executes fine without any issues but still file system doesnt get unmounted (eventhough not in use or no errors). The actual commands to manually unmount a volume works fine though.

Any pointers would be of great help.

- set\_fact:  
device: /dev/xvdb  
when: nvmedev.stat.exists == False

- name: Unmount device  
mount:  
name: “{{ item }}”  
src: none  
fstype: none  
state: unmounted  
with\_items:

- /dev/xvdb1

- name: Unmount  
mount:  
path: /dev/nvme1n1  
state: absent

Regards  
Karthick

---

<div class="post-metadata">

**Author:** ![Suhail\_Choudhury](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@Suhail\_Choudhury](https://forum.ansible.com/u/Suhail_Choudhury)\
**Post date:** [March 14, 2019, 12:50pm UTC](https://forum.ansible.com/t/issue-with-unmount-of-volume/29864/2 "2019-03-14T12:50:33Z")

</div>

Hi,

/dev/xvdb and /dev/nvme1n1 are both devices.

You probably need to specify the path which these devices are mounted on?

Regards,  
Suhail.
