Add ldap role
This commit is contained in:
parent
c4fc42092c
commit
32b79f0bfa
18
ldap/README.md
Normal file
18
ldap/README.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
# LDAP
|
||||
|
||||
Installation and basic configuration of ldap service.
|
||||
|
||||
## Tasks
|
||||
|
||||
Minimal configuration is in `tasks/main.yml` and optional customization in :
|
||||
|
||||
* `slow_transport.yml` : slow transport to specific destination.
|
||||
|
||||
## Available variables
|
||||
|
||||
Main variables are :
|
||||
|
||||
* `postfix_hostname` : hostname for Postfix ;
|
||||
* `postfix_slow_transport` : enable customization for delivrability.
|
||||
|
||||
The full list of variables (with default values) can be found in `defaults/main.yml`.
|
4
ldap/defaults/main.yml
Normal file
4
ldap/defaults/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
ldap_domain: "{{ ansible_fqdn }}"
|
||||
ldap_organization: "{{ ansible_domain }}"
|
||||
#ldap_password=$(apg -n1 -m 12 -c cl_seed)
|
5
ldap/handlers/main.yml
Normal file
5
ldap/handlers/main.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- name: restart slapd
|
||||
service:
|
||||
name: slapd
|
||||
state: restarted
|
19
ldap/meta/main.yml
Normal file
19
ldap/meta/main.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
galaxy_info:
|
||||
author: Evolix
|
||||
description: Installation and basic configuration of ldap.
|
||||
|
||||
issue_tracker_url: https://forge.evolix.org/projects/ansible-roles/issues
|
||||
|
||||
license: GPLv2
|
||||
|
||||
min_ansible_version: 2.0
|
||||
|
||||
platforms:
|
||||
- name: Debian
|
||||
versions:
|
||||
- jessie
|
||||
|
||||
dependencies: []
|
||||
# List your role dependencies here, one per line.
|
||||
# Be sure to remove the '[]' above if you add dependencies
|
||||
# to this list.
|
8
ldap/tasks/main.yml
Normal file
8
ldap/tasks/main.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
- name: ensure packages are installed
|
||||
apt:
|
||||
name: '{{ item }}'
|
||||
state: present
|
||||
with_items:
|
||||
- slapd
|
||||
- ldap-utils
|
||||
- ldapvi
|
Loading…
Reference in a new issue