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
Branches
No related tags found
No related merge requests found
...@@ -6,4 +6,5 @@ galaxy_info: ...@@ -6,4 +6,5 @@ galaxy_info:
license: license (GPLv2, CC-BY, etc) license: license (GPLv2, CC-BY, etc)
#platforms: #platforms:
#categories: #categories:
dependencies: [] dependencies:
- apache
...@@ -19,20 +19,6 @@ ...@@ -19,20 +19,6 @@
when: phpldapadmin_debconf.changed when: phpldapadmin_debconf.changed
command: /usr/sbin/dpkg-reconfigure --frontend noninteractive slapd 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 - name: Add phpLDAPadmin Apache site
template: template:
src: phpmyadmin.conf.j2 src: phpmyadmin.conf.j2
...@@ -41,10 +27,4 @@ ...@@ -41,10 +27,4 @@
group: root group: root
mode: '0644' mode: '0644'
notify: notify:
- Restart Apache - Reload Apache
- name: Allow HTTPS port
ufw:
rule: allow
port: https
proto: tcp
{# Apache virtualhost template for phpLDAPadmin #} {# Apache virtualhost template for phpLDAPadmin #}
<VirtualHost _default_:443> <VirtualHost _default_:443>
DocumentRoot /usr/share/phpldapadmin 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> </virtualHost>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment