I'm new to this, so I'll look into facts for this type of thing in the
future. Thanks for the tip! However, 'ansible_mounts' doesn't look to be a
dictionary. How would I work with this? Is this appropriate? This works and
I'm mostly happy with it (see below) but I'm not sure if I'm still making
it more complicated than it needs to be.
- mount: name={{ item.mount }} src={{ item.device }} fstype={{ item.fstype
}} state=mounted opts="{{ item.options }},acl"
with_items: ansible_mounts
when: item.mount == '/'
when: item.options | search('^((?!(^acl,|,acl,|,acl$)).)*$')
Also, it looks like dump and passno are not in the ansible_mounts object.
Maybe I can see about adding those?
Thanks again for all of your help!
On Wednesday, April 16, 2014 3:25:36 PM UTC-5, Michael DeHaan wrote:
>
> Modules should take a state=absent to remove the entity, but for
> modification, should just take a "state=present" (default) with new options.
>
> I'm definitely open to additions (other than the fact things, because they
> are there).
>
>
>
>
>
> On Wed, Apr 16, 2014 at 4:23 PM, Brian Coca <[email protected]<javascript:>
> > wrote:
>
>> fyi, ansible facts should have a dict with all mountpoints, options and
>> sources, you should not need to look at mtab yourself
>>
>> --
>> 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:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/CADn%2BHsx0cjXajAoQUkh9oA8w85rNiLud57oeLMB_6wCbD3pQwQ%40mail.gmail.com<https://groups.google.com/d/msgid/ansible-project/CADn%2BHsx0cjXajAoQUkh9oA8w85rNiLud57oeLMB_6wCbD3pQwQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> 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/5e363155-a5c9-4e4d-87ec-ea09daeb85ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.