> > If you can't get this with the ansible_mounts variable for whatever > reason, then what you're doing here should work, except that in order to > do the pipe, you need to use the 'shell' rather than the 'command' module. >
Or: command: mount register: m always_run: True changed_when: False ... when: "'/path' not in m.stdout" Cheers, Paul -- 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/eec893fa-1e4c-4f22-a8f1-82ce7ea2ca54%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
