{"id":29702610,"url":"https://github.com/devgateway/ansible-role-openldap-schema","last_synced_at":"2026-05-10T16:36:39.503Z","repository":{"id":78413114,"uuid":"129949532","full_name":"devgateway/ansible-role-openldap-schema","owner":"devgateway","description":"OpenLDAP schema role for Ansible","archived":false,"fork":false,"pushed_at":"2018-12-15T04:23:54.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-23T13:00:10.880Z","etag":null,"topics":["ansible","ansible-role","ldap","ldap-schema","openldap"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devgateway.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-04-17T18:38:44.000Z","updated_at":"2018-12-15T04:23:55.000Z","dependencies_parsed_at":"2023-03-20T22:19:05.704Z","dependency_job_id":null,"html_url":"https://github.com/devgateway/ansible-role-openldap-schema","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devgateway/ansible-role-openldap-schema","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgateway%2Fansible-role-openldap-schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgateway%2Fansible-role-openldap-schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgateway%2Fansible-role-openldap-schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgateway%2Fansible-role-openldap-schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devgateway","download_url":"https://codeload.github.com/devgateway/ansible-role-openldap-schema/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgateway%2Fansible-role-openldap-schema/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32864078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"ssl_error","status_checked_at":"2026-05-10T13:40:02.145Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","ldap","ldap-schema","openldap"],"created_at":"2025-07-23T12:39:45.300Z","updated_at":"2026-05-10T16:36:39.494Z","avatar_url":"https://github.com/devgateway.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Openldap-schema role for Ansible\n\nIdempotently load a schema to OpenLDAP server.\n\nThis role will ensure an LDIF-formatted schema exists on OpenLDAP server: either from a string\nvariable, or from a file on the remote host. It will detect schema CN from LDIF contents. LDIF line\nwrapping is fully supported.\n\n## Role Variables\n\nEither `ols_schema` or `ols_ldif` variable is required.\n\n### `ols_schema`\n\nIf `ols_schema` is *set*, then it should contain the schema LDIF. This string will be fed to\n`ldapadd(1)` standard input.\n\nLDIF line wrapping using a leading space is cumbersome to store in a YAML playbook, so you might\nwant to read it dynamically using a lookup.\n\n### `ols_ldif`\n\nIf `ols_schema` is *not set*, then `ols_ldif` specifies the file name on the remote host. This file\nwill be loaded to LDAP using `ldapadd(1)` command.\n\n## Example Playbook\n\n    ---\n    - hosts: ldap-servers\n      tasks:\n        - name: Start OpenLDAP\n          service:\n            name: slapd\n            state: started\n\n        - name: Load schema from remote file\n          include_role:\n            name: devgateway.openldap-schema\n          vars:\n            ols_ldif: /etc/openldap/schema/ppolicy.ldif\n\n        - name: Load schema from a lookup\n          include_role:\n            name: devgateway.openldap-schema\n          vars:\n            ols_schema: \"{{ lookup('file', '~/schema/project.ldif' ) }}\"\n\n# License\n\nGPLv3 or later\n\n# Author Information\n\nCopyright 2018, Development Gateway\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgateway%2Fansible-role-openldap-schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevgateway%2Fansible-role-openldap-schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgateway%2Fansible-role-openldap-schema/lists"}