I'm using the following to set my LDAP root password:

- name: generate ldap admin password hash
  command: "/usr/sbin/slappasswd -s PASSWORD"
  register: slapd_admin_password_hash
  tags: ldap
- name: set ldap admin password
  become: yes
  ldap_attr:
    dn: "olcDatabase={1}hdb,cn=config"
    name: olcRootPW
    values: "{{ slapd_admin_password_hash.stdout }}"
    state: exact
  tags: ldap

It works; the password is set (in this case to PASSWORD) but the step shows 
an error:

fatal: [10.10.9.80]: FAILED! => {"changed": false, "details": "{'desc': 'No 
such object'}", "failed": true, "msg": "Attribute action failed."}

I'm completely new to LDAP from the admin side so it's possible it's more 
an LDAP misunderstanding than an Ansible one. Can anyone tell me what's 
happening? 

I'm using Ansible 2.3.0 on Arch linux configuring an Ubuntu Trusty server.

Thanks,
Kev

-- 
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/02e96c16-8336-4808-8391-40d47a82b194%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to