The setup module that normally runs at the start of the play will return mounts of a system in `ansible_mounts` (if I remember the var name correctly)
You can use this var to look. On Sunday, May 22, 2016, Robert F <[email protected]> wrote: > Is there a canonical way to use Ansible to see if a file system on a > remote host is mounted? Ansible's mount module doesn't seem to address > this need. I'm trying to do it as follows but I get an error: > > - name: check if file system mounted > > -- > 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] > <javascript:_e(%7B%7D,'cvml','ansible-project%[email protected]');> > . > To post to this group, send email to [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/162ed205-cc44-4c41-8606-47a6c749a896%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/162ed205-cc44-4c41-8606-47a6c749a896%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Matt Martz @sivel sivel.net -- 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/CAD8N0v-b_hP6Md%3DvYiMF%2B0wF_TeqpnuUS0LepwRN838ry1LZmw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
