20 lines
729 B
YAML
20 lines
729 B
YAML
---
|
|
- name: "Disable Certbot autocreated {{ httpd_site_name }}-le-ssl"
|
|
ansible.builtin.command: "a2dissite {{ httpd_site_name }}-le-ssl"
|
|
args:
|
|
removes: "/etc/apache2/sites-enabled/{{ httpd_site_name }}-le-ssl.conf"
|
|
notify: Reload Apache
|
|
- name: Create Apache TLS virtual host config
|
|
ansible.builtin.template:
|
|
src: httpd/tls_vhost.conf.j2
|
|
dest: "/etc/apache2/sites-available/{{ httpd_site_name }}_tls.conf"
|
|
owner: www-data
|
|
group: www-data
|
|
mode: '0644'
|
|
notify: Reload Apache
|
|
- name: "Enable http site {{ httpd_site_name }}_tls"
|
|
ansible.builtin.command: "a2ensite {{ httpd_site_name }}_tls"
|
|
args:
|
|
creates: "/etc/apache2/sites-enabled/{{ httpd_site_name }}_tls.conf"
|
|
notify: Reload Apache
|