🔥 Remove role setup-http-dehydrated
This feature is now provided by setup-http-site-proxy
This commit is contained in:
parent
e3020b6d71
commit
182feeca58
4 changed files with 0 additions and 58 deletions
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
- name: restart apache2
|
||||
service:
|
||||
name: apache2
|
||||
state: restarted
|
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
dependencies:
|
||||
- role: ansible-role-dehydrated
|
|
@ -1,12 +0,0 @@
|
|||
---
|
||||
- name: Add or update Apache2 site
|
||||
template:
|
||||
src: templates/apache-dehydrated.j2
|
||||
dest: /etc/apache2/sites-available/{{ site_name }}.conf
|
||||
notify: restart apache2
|
||||
|
||||
- name: Activate Apache2 site
|
||||
command: a2ensite {{ site_name }}
|
||||
args:
|
||||
creates: /etc/apache2/sites-enabled/{{ site_name }}.conf
|
||||
notify: restart apache2
|
|
@ -1,38 +0,0 @@
|
|||
{% if 'address' in ansible_default_ipv6 %}
|
||||
<VirtualHost {{ ansible_default_ipv4.address }}:80 [{{ ansible_default_ipv6.address }}]:80>
|
||||
{% else %}
|
||||
<VirtualHost {{ ansible_default_ipv4.address }}:80>
|
||||
{% endif %}
|
||||
ServerAdmin {{ server_admin }}
|
||||
ServerName {{ site_name }}
|
||||
ServerAlias {{ site_name }}
|
||||
ErrorLog /var/log/apache2/{{ site_name }}-error.log
|
||||
CustomLog /var/log/apache2/{{ site_name }}-access.log common
|
||||
|
||||
Alias /.well-known/acme-challenge {{ dehydrated_wellknown_dir }}
|
||||
</VirtualHost>
|
||||
|
||||
<IfFile {{dehydrated_certs_dir}}/{{ site_name }}>
|
||||
{% if 'address' in ansible_default_ipv6 %}
|
||||
<VirtualHost {{ ansible_default_ipv4.address }}:443 [{{ ansible_default_ipv6.address }}]:443>
|
||||
{% else %}
|
||||
<VirtualHost {{ ansible_default_ipv4.address }}:443>
|
||||
{% endif %}
|
||||
ServerAdmin {{ server_admin }}
|
||||
ServerName {{ site_name }}
|
||||
ServerAlias {{ site_name }}
|
||||
|
||||
ErrorLog /var/log/apache2/{{ site_name }}-error.log
|
||||
CustomLog /var/log/apache2/{{ site_name }}-access.log common
|
||||
|
||||
SSLEngine on
|
||||
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
|
||||
SSLCertificateFile {{dehydrated_certs_dir}}/{{ site_name }}/cert.pem
|
||||
SSLCertificateKeyFile {{dehydrated_certs_dir}}/{{ site_name }}/privkey.pem
|
||||
SSLCertificateChainFile {{dehydrated_certs_dir}}/{{ site_name }}/chain.pem
|
||||
|
||||
Alias /.well-known/acme-challenge {{ dehydrated_wellknown_dir }}
|
||||
|
||||
Redirect 404 /
|
||||
</VirtualHost>
|
||||
</IfFile>
|
Loading…
Reference in a new issue