ERROR! 'with_ldap' is not valid attribute for a Task

57 views
Skip to first unread message

Grzegorz Sz.

unread,
Jul 21, 2017, 3:08:50 AM7/21/17
to Ansible Project
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

Pshem Kowalczyk

unread,
Jul 21, 2017, 3:43:28 AM7/21/17
to Ansible Project
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


--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/60f4825f-d79c-4b41-933b-f6489dbf346b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Grzegorz Sz.

unread,
Jul 21, 2017, 8:10:04 AM7/21/17
to Ansible Project

Pshem Kowalczyk

unread,
Jul 21, 2017, 11:50:35 PM7/21/17
to Ansible Project
Since those look like plugins (and not modules) - copy the files from filter_plugins and lookup_plugins to the directories in your setup (if you don't have those dirs create them at the same level as your playbook). 

kind regards
Pshem




--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages