This guide deploys LDAP Account Manager with Apache, PHP, and LDAP utilities.
- name: Install LAM on Debian family
hosts: lam_debian
become: true
vars:
lam_ldap_server: ldap://127.0.0.1
tasks:
- name: Install LAM dependencies
ansible.builtin.apt:
update_cache: true
name:
- ldap-account-manager
- apache2
- php
- php-ldap
- php-xml
- ldap-utils
state: present
- name: Set LDAP server in LAM config
ansible.builtin.lineinfile:
path: /etc/ldap-account-manager/config.cfg
regexp: '^servers='
line: "servers={{ lam_ldap_server }}"
failed_when: false
- name: Enable and start Apache
ansible.builtin.systemd:
name: apache2
enabled: true
state: started
- name: Install LAM on RHEL family
hosts: lam_rhel
become: true
vars:
lam_ldap_server: ldap://127.0.0.1
tasks:
- name: Install LAM dependencies
ansible.builtin.dnf:
name:
- httpd
- php
- php-ldap
- php-xml
- openldap-clients
state: present
- name: Enable and start Apache
ansible.builtin.systemd:
name: httpd
enabled: true
state: started
ansible-playbook -i inventory.ini lam-install.yml
lam_debian.ldap-account-manager) in your repository mirror.Beyond this playbook, we offer:
Contact our automation team: office@linux-server-admin.com