Skip to content
phpldapadmin.yml 847 B
Newer Older
---

- name: Preseed phpLDAPadmin
  debconf:
    name: phpldapadmin
    question: phpldapadmin/ldap-basedn
    vtype: string

- name: apt install phpldapadmin
  apt:
    name: phpldapadmin
    state: present
    update_cache: yes
    cache_valid_time: 3600

- name: Enable mod-ssl in Apache
  apache2_module:
    name: ssl
    state: present
  notify:
    - Restart Apache

- name: Disable default Apache site
  file:
    path: /etc/apache2/sites-enabled/000-default.conf
    state: absent
  notify:
    - Restart Apache

- name: Add phpLDAPadmin Apache site
  template:
    src: phpmyadmin.conf.j2
    dest: /etc/apache2/sites-enabled/phpmyadmin.conf
    owner: root
    group: root
    mode: '0644'
  notify:
    - Restart Apache

- name: Allow HTTPS port
  ufw:
    rule: allow