Commit ab5154ee authored by nimrod's avatar nimrod
Browse files

Depend on Apache role, remove unnecessary tasks and config.

parent c3b54cf0
Loading
Loading
Loading
Loading
+2 −1
Changes for meta/main.yml: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -6,4 +6,5 @@ galaxy_info:
  license: license (GPLv2, CC-BY, etc)
  #platforms:
  #categories:
dependencies: []
dependencies:
- apache
+1 −21
Changes for tasks/phpldapadmin.yml: 1 added line, 21 removed lines.
Original line number Diff line number Diff line
@@ -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
−9
Changes for templates/phpmyadmin.conf.j2: 0 added lines, 9 removed lines.
Original line number Diff line number Diff line
{# 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>