|
3 years ago | |
---|---|---|
handlers | 4 years ago | |
tasks | 4 years ago | |
templates | 5 years ago | |
vars | 5 years ago | |
LICENSE | 5 years ago | |
README.md | 4 years ago |
These Role will deploy an OpenLDAP/FusionDirectory server.
Components:
Clone the repository:
$ git clone https://git.theo-andreou.org/Personal/ansible-deploy-ldap-fusiondirectory.git
$ cd ansible-deploy-ldap-fusiondirectory
domain: example.org
organization: Example LTD
description: example
base_dn: dc=example,dc=org
locality: Limassol
state: Limassol
country: CY
allowed_ips:
- 192.168.0.0/24
- 10.0.0.0/24
language: en_US
timezone: Asia/Nicosia
$ ansible-vault create vars/secrets.yml
Use a master password for the file above.
ldap_admin_dn: cn=admin,dc=example,dc=org
ldap_admin_pass: MySecretLDAPCombination
fd_admin: fdadmin
fd_admin_pass: MySecretFDCombination
- hosts: all
become: yes
gather_facts: false
vars:
- ansible_user: "ubuntu"
pre_tasks:
- name: install python 2
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
changed_when: False
roles:
- ansible-deploy-ldap-fusiondirectory
When done with the configuration run this command (provide your master password):
$ ansible-playbook --vault-id @prompt fusiondirectory.yml
When done visit http://auth.example.org to login for the first time. I suggest you enable HTTPS before doing that.