Skip to content
Snippets Groups Projects
Commit ab5154ee authored by nimrod's avatar nimrod
Browse files

Depend on Apache role, remove unnecessary tasks and config.

parent c3b54cf0
No related branches found
No related tags found
No related merge requests found
......@@ -6,4 +6,5 @@ galaxy_info:
license: license (GPLv2, CC-BY, etc)
#platforms:
#categories:
dependencies: []
dependencies:
- apache
......@@ -19,20 +19,6 @@
when: phpldapadmin_debconf.changed
command: /usr/sbin/dpkg-reconfigure --frontend noninteractive slapd
- 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
......@@ -41,10 +27,4 @@
group: root
mode: '0644'
notify:
- Restart Apache
- name: Allow HTTPS port
ufw:
rule: allow
port: https
proto: tcp
- Reload Apache
{# Apache virtualhost template for phpLDAPadmin #}
<VirtualHost _default_:443>
DocumentRoot /usr/share/phpldapadmin
SSLEngine on
SSLCertificateFile {{ openldap_tls_cert }}
SSLCertificateKeyFile {{ openldap_tls_key }}
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite !kRSA:!3DES:!RC4:!DES:!MD5:!aNULL:!NULL:AESGCM+ECDH:AES256+ECDH:AES128:+SHA1;
SSLHonorCipherOrder on
SSLCompression off
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</virtualHost>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment