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

Depend on Apache role, remove unnecessary tasks and config.

parent 991ea647
No related branches found
No related tags found
No related merge requests found
...@@ -7,4 +7,5 @@ galaxy_info: ...@@ -7,4 +7,5 @@ galaxy_info:
min_ansible_version: 1.2 min_ansible_version: 1.2
#platforms: #platforms:
#categories: #categories:
dependencies: [] dependencies:
- apache
...@@ -73,23 +73,6 @@ ...@@ -73,23 +73,6 @@
state: present state: present
minute: '*/15' minute: '*/15'
- name: Enable mod-ssl in Apache
with_items:
- ssl
- headers
apache2_module:
name: '{{ item }}'
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 ownCloud Apache site - name: Add ownCloud Apache site
template: template:
src: owncloud.conf.j2 src: owncloud.conf.j2
...@@ -98,13 +81,7 @@ ...@@ -98,13 +81,7 @@
group: root group: root
mode: '0644' mode: '0644'
notify: notify:
- Restart Apache - Reload Apache
- name: Open https port in firewall
ufw:
rule: allow
port: 443
proto: tcp
- name: Add daily backup job - name: Add daily backup job
template: template:
......
<VirtualHost _default_:443> <VirtualHost _default_:443>
DocumentRoot /var/www/owncloud/ DocumentRoot /var/www/owncloud/
SSLEngine on
SSLCertificateFile {{ tls_cert_path }}
SSLCertificateKeyFile {{ tls_key_path }}
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite !kRSA:!3DES:!RC4:!DES:!MD5:!aNULL:!NULL:AESGCM+ECDH:AES256+ECDH:AES128:+SHA1;
SSLHonorCipherOrder on
SSLCompression off
Header always set Strict-Transport-Security "max-age=15768000;includeSubDomains; preload"
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