Skip to content

'with_ldap' is not a valid attribute for a Task #36

@rks040888

Description

@rks040888

I'm getting stated error while running a simple playbook using this role.

Steps taken:

  1. Downloaded the zip file and unzipped the content to /etc/ansible/roles/lookup_ldap directory
  2. Created attached "ldap-test.txt" playbook and tried to execute it.
  3. Got below error
_ERROR! 'with_ldap' is not a valid attribute for a Task

The error appears to be in 'ldap-test.txt': line 15, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  tasks:
    - name: query LDAP
      ^ here_

Ran ansible-galaxy list roles command and it is showing that "lookup_ldap" role is installed.

ansible-galaxy list
# /etc/ansible/roles
- lookup_ldap, (unknown version)

Please help me out in this issue.
ldap-test.txt

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