You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
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
Suhail Choudhury
unread,
Mar 14, 2019, 8:50:54 AM3/14/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
Hi,
/dev/xvdb and /dev/nvme1n1 are both devices.
You probably need to specify the path which these devices are mounted on?