Newer
Older
nimrod
committed
---
- name: Preseed phpLDAPadmin
debconf:
name: phpldapadmin
question: phpldapadmin/ldap-basedn
vtype: string
value: '{{ openldap_basedn }}'
nimrod
committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
- 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:
nimrod
committed
port: https
proto: tcp