...
 
Commits (3)
......@@ -20,10 +20,13 @@
owner: "{{ apache_user }}"
group: "{{ apache_user }}"
mode: 0640
validate: 'apachectl -t -f %s'
register: apache_result
- name: a2ensite {{ privatebin_url }}
- name: PRIVATEBIN | INSTALL | a2ensite {{ privatebin_url }}
command: a2ensite {{ privatebin_url }}
args:
creates: /etc/apache2/sites-enabled/{{ privatebin_url }}.conf
when: apache_result|success
notify:
- restart apache
......@@ -8,7 +8,9 @@
{% if privatebin_ssl_cert is defined %}
SSLEngine on
SSLCertificateFile {{ privatebin_ssl_cert }}
{% if privatebin_ssl_chain is defined %}SSLCertificateChainFile {{ privatebin_ssl_chain }}{% endif %}
{% if privatebin_ssl_chain is defined %}
SSLCertificateChainFile {{ privatebin_ssl_chain }}
{% endif %}
SSLCertificateKeyFile {{ privatebin_ssl_key }}
{% endif %}
......