This guide installs FusionDirectory and required PHP/LDAP dependencies.
- name: Install FusionDirectory on Debian family
hosts: fusiondirectory_debian
become: true
vars:
fusiondirectory_web_root: /var/www/fusiondirectory
tasks:
- name: Install dependencies
ansible.builtin.apt:
update_cache: true
name:
- apache2
- php
- php-ldap
- php-xml
- php-mbstring
- php-curl
- php-zip
- ldap-utils
state: present
- name: Ensure web root exists
ansible.builtin.file:
path: "{{ fusiondirectory_web_root }}"
state: directory
owner: www-data
group: www-data
mode: "0755"
- name: Enable and start Apache
ansible.builtin.systemd:
name: apache2
enabled: true
state: started
- name: Install FusionDirectory on RHEL family
hosts: fusiondirectory_rhel
become: true
vars:
fusiondirectory_web_root: /var/www/html/fusiondirectory
tasks:
- name: Install dependencies
ansible.builtin.dnf:
name:
- httpd
- php
- php-ldap
- php-xml
- php-mbstring
- php-cli
- openldap-clients
state: present
- name: Ensure web root exists
ansible.builtin.file:
path: "{{ fusiondirectory_web_root }}"
state: directory
owner: apache
group: apache
mode: "0755"
- name: Enable and start Apache
ansible.builtin.systemd:
name: httpd
enabled: true
state: started
ansible-playbook -i inventory.ini fusiondirectory-install.yml
fusiondirectory_debian.We develop tailored automation solutions for:
Let’s discuss your requirements: office@linux-server-admin.com | Contact