From 533e79ba959143f0459431a486bfb85c56c72ddc Mon Sep 17 00:00:00 2001 From: luisgulo Date: Fri, 24 Oct 2025 18:01:10 +0200 Subject: Releasing code version 1.8.0 --- examples/docker_and_ldapsearch.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 examples/docker_and_ldapsearch.yaml (limited to 'examples/docker_and_ldapsearch.yaml') diff --git a/examples/docker_and_ldapsearch.yaml b/examples/docker_and_ldapsearch.yaml new file mode 100644 index 0000000..50cf48e --- /dev/null +++ b/examples/docker_and_ldapsearch.yaml @@ -0,0 +1,31 @@ +tasks: + - name: Lanzar contenedor LDAP + module: docker + args: + action: present + name: test-ldap + image: osixia/openldap:latest + run_args: "-p 389:389 -p 636:636 -e LDAP_ORGANISATION='Test Org' -e LDAP_DOMAIN='test.local' -e LDAP_ADMIN_PASSWORD='secreta'" + + - name: Esperar 5 segundos para que LDAP esté listo + module: wait + args: + seconds: 5 + + - name: Buscar usuarios en OpenLDAP + module: ldap_openldap + args: + state: search + server: ldap://localhost + port: 389 + base_dn: "dc=test,dc=local" + filter: "(objectClass=*)" + attributes: "cn,mail,uid" + bind_dn: "cn=admin,dc=test,dc=local" + password: "secreta" + + #- name: Eliminar LDAP + # module: docker + # args: + # action: absent + # name: test-ldap -- cgit v1.2.3