Hey All,
Trying to create a (when: ) condition, where a task runs only when a mount
point does NOT exists.
- name: format disk with ext4
filesystem: fstype=ext4 dev={{ item }}
with_items:
- /dev/xvdc
when: ansible_mounts.mount doesn't contain "/path/to/my/mount/point"
The expectation is that ansible_mounts contains 1 or more mount points.
Any ideas?
Thanks!
--
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/20e3a101-1dac-47aa-90a8-7c223b07cba8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.