This project provides a pair of Ansible modules for manipulating an LDAP directory. The ldap_entry
module can be used to create/delete LDAP entries and the ldap_attr
module can then be used to manage those entries' attributes.
Unless/until these modules makes their way upstream into Ansible, the documentation for them is only available embedded in their code (see the link for each, above).
These modules are published on Ansible Galaxy here: https://galaxy.ansible.com/karlmdavis/ansible-role-ldap/. They can be installed from there by running a command such as the following:
$ ansible-galaxy install karlmdavis.ansible-role-ldap
This role supports Ansible 2 and later. For the specific versions that it's tested against, see the values for "ANSIBLE_VERSION
" towards the top of .travis.yml. They should work on any Linux platform, but are only automatically tested on Ubuntu 12.04 (as that's what Travis CI provides).
BSD and public domain (as the changes exclusive to this fork were written by US federal government employees, partially during work hours).
This fork was authored by Karl M. Davis (https://justdavis.com/karl/), but the vast bulk of the work originally came from ansible-ldap by Peter Sagerson.