Friends,
I'd like to iterate over ansible_mounts and set custom options for /some/
mount points, like so
/var: defaults,nosuid
/home: defaults,nosuid,nodev
/: defaults
- name: Secure Mount options
mount: name={{ item.mount }} src='{{ item.device }}' state=present
fstype={{ item.fstype }} opts={{ ??? }}
with_items: ansible_mounts
How can I combine the list of vars within my loop. So that opts= is filled
with the value looked up depending on the mount point?
Thanks for any pointers!
Stephan
--
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/514b5dc3-511b-4b40-b903-1ee5962c7748%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.