quinot / ansible-plugin-lookup_ldap

Ansible LDAP lookup plugin
50 stars 16 forks source link

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

Open rks040888 opened 4 years ago

rks040888 commented 4 years ago

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:

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