Hi, /dev/xvdb and /dev/nvme1n1 are both devices.
You probably need to specify the path which these devices are mounted on? Regards, Suhail. On Tue, 12 Mar 2019 at 06:18, Karthick Thanigaimani <[email protected]> wrote: > > 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 > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/1077839576.767724.1552371526090%40mail.yahoo.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAHdO4Gnu8BAO3mCrWjjVFHHCGtBPY%3DJyNT8w7TG%2BCEeiHOO3KQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
