Skip to content

ldap_search formatting error #35

@Kieranwalsh23

Description

@Kieranwalsh23

I have placed the ldap_search.py plugin in the ansible/plugins/lookup directory (along with the other lookup plugins). When I run 'ansible-doc -t lookup -l' to view all available lookup plugins, I receive the following error.

[WARNING]: ldap_search has a documentation formatting error
[WARNING]: ldap_search parsing did t produce documentation

I am worried that this error has effected more than just the documentation. When I try to use this plugin within a task, I receive an error stating that the task does no action. I am fairly new to ldap, so I wanted to start off with a basic task and use the example that was found within the ldap_search.py plugin.

Here is the example that was included in the plugin:
EXAMPLES = r"""

  • name: Return all entries within the 'groups' organizational unit.
    community.general.ldap_search:
    dn: "ou=groups,dc=example,dc=com"
    register: ldap_groups

I have replaced the values of the example to match what I need, but still receive the error that the task does no action. Has anyone received these errors/warnings before?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions