Add default TLS Certificates for "localhost"
This commit is contained in:
parent
4afbe76369
commit
b6e25d1ab8
@ -125,6 +125,18 @@
|
|||||||
loop: '{{ http_vhost }}'
|
loop: '{{ http_vhost }}'
|
||||||
loop_control:
|
loop_control:
|
||||||
label: '{{ item.fqdn }} will be ensured'
|
label: '{{ item.fqdn }} will be ensured'
|
||||||
|
- name: 'base vhost document root'
|
||||||
|
when:
|
||||||
|
- ansible_system == 'Linux'
|
||||||
|
- ensure_apache is defined
|
||||||
|
- http_vhost is defined
|
||||||
|
- http_vhost is iterable
|
||||||
|
ansible.builtin.file:
|
||||||
|
group: 'root'
|
||||||
|
owner: 'root'
|
||||||
|
mode: '0775'
|
||||||
|
path: '/srv/http'
|
||||||
|
state: 'directory'
|
||||||
- name: 'ensure vhost document roots'
|
- name: 'ensure vhost document roots'
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
|
@ -65,8 +65,8 @@
|
|||||||
SSLHonorCipherOrder on
|
SSLHonorCipherOrder on
|
||||||
SSLCipherSuite PROFILE=SYSTEM
|
SSLCipherSuite PROFILE=SYSTEM
|
||||||
SSLProxyCipherSuite PROFILE=SYSTEM
|
SSLProxyCipherSuite PROFILE=SYSTEM
|
||||||
# SSLCertificateFile /etc/pki/tls/certs/localhost.crt
|
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
|
||||||
# SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
|
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
|
||||||
ServerName {{ item.fqdn }}
|
ServerName {{ item.fqdn }}
|
||||||
ServerAdmin webmaster@firedragonenterprises.com
|
ServerAdmin webmaster@firedragonenterprises.com
|
||||||
DocumentRoot /srv/http/{{ item.fqdn }}
|
DocumentRoot /srv/http/{{ item.fqdn }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user