PE> Not sure how to avoid it in the below case. Any hint ?

I often find it helps to use the more Pythonic expression of the
variables, thing['foo'][bar], so you can tell that 'foo' is a literal
string and bar is a variable, rather than the sloppy thing.foo.bar, where
you can't.

So instead of

  when: getent_passwd.{{ item.name }} is defined

try

  when: getent_passwd[item['name']] is defined

I'm not 100% sure that's the problem you're having, but if it is, does
that work?

                                      -Josh ([email protected])

(apologies for the automatic corporate disclaimer that follows)

This email is intended for the person(s) to whom it is addressed and may 
contain information that is PRIVILEGED or CONFIDENTIAL. Any unauthorized use, 
distribution, copying, or disclosure by any person other than the addressee(s) 
is strictly prohibited. If you have received this email in error, please notify 
the sender immediately by return email and delete the message and any 
attachments from your system.

-- 
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/22784.55500.919328.998690%40gargle.gargle.HOWL.
For more options, visit https://groups.google.com/d/optout.

Reply via email to