Hi, I'm not sure which module you're referring to, but in your playbook you use 'debug' module. Also the 'with_ldap' section is not indented correctly - if it's a parameter to a module it has to be indented more then the name of the module you're using.
kind regards Pshem On Fri, 21 Jul 2017 at 19:09 Grzegorz Sz. <[email protected]> wrote: > Hi, > > I use 'with_ldap' role from lookup_module. It seems that my playbook > doesn't see it. There is an error: > > ERROR! 'with_ldap' is not valid attribute for a Task > > Can anybody help me, please ? > > My task: > > - name: List group members > debug: > msg: "group member {{ item }}" > with_ldap: > - context: group_members > - ldapgroup > > > Thanks ! > BR > Greg > > -- > 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/60f4825f-d79c-4b41-933b-f6489dbf346b%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/60f4825f-d79c-4b41-933b-f6489dbf346b%40googlegroups.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/CAEaZiRUV%2BvTGmngMMoNBu2q3_YUh2N2oz6t40v%3DJjZSPNgKjfg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
