mirror of
https://github.com/DO1JLR/ansible_playbook_servers.git
synced 2024-09-14 19:53:56 +02:00
improve website collection
This commit is contained in:
parent
4ca138ad47
commit
06611f5628
7 changed files with 70 additions and 0 deletions
|
@ -31,6 +31,11 @@ nginx_sites:
|
||||||
- name: 'www.c3woc.eu'
|
- name: 'www.c3woc.eu'
|
||||||
- name: 'c3woc.cn'
|
- name: 'c3woc.cn'
|
||||||
- name: 'www.c3woc.cn'
|
- name: 'www.c3woc.cn'
|
||||||
|
- name: 'l3d.space'
|
||||||
|
- name: 'www.l3d.space'
|
||||||
|
- name: 'ansible.l3d.space'
|
||||||
|
- name: 'www.ansible.l3d.space'
|
||||||
|
|
||||||
|
|
||||||
acme_notification_email: "acme_{{ inventory_hostname }}@l3d.yt"
|
acme_notification_email: "acme_{{ inventory_hostname }}@l3d.yt"
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,5 @@
|
||||||
[web]
|
[web]
|
||||||
web01.l3d.space
|
web01.l3d.space
|
||||||
|
|
||||||
|
[mail]
|
||||||
|
mail01.l3d.space
|
||||||
|
|
6
site.yml
6
site.yml
|
@ -25,3 +25,9 @@
|
||||||
- { role: acmetool2, tags: [web,acmetool]}
|
- { role: acmetool2, tags: [web,acmetool]}
|
||||||
- { role: nginx2, tags: [web,nginx]}
|
- { role: nginx2, tags: [web,nginx]}
|
||||||
- { role: goaccess, tags: [web,goaccess]}
|
- { role: goaccess, tags: [web,goaccess]}
|
||||||
|
|
||||||
|
#- name: deploy mail config
|
||||||
|
# hosts: mail
|
||||||
|
# roles:
|
||||||
|
# - { role: postfix, tags: [mail,postfix]}
|
||||||
|
# - { role: dovecot, tags: [mail,dovecot]}
|
||||||
|
|
14
templates/files/nginx/sites/ansible.l3d.space_tls.conf
Normal file
14
templates/files/nginx/sites/ansible.l3d.space_tls.conf
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
server {
|
||||||
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
|
||||||
|
server_name ansible.l3d.space;
|
||||||
|
|
||||||
|
include snippets/tls_parameters_{{ site.name }}.snippet.conf;
|
||||||
|
include snippets/tls_certificate_{{ site.name }}.snippet.conf;
|
||||||
|
include snippets/logging_{{ site.name }}.snippet.conf;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
return 308 https://github.com/roles-ansible/;
|
||||||
|
}
|
||||||
|
}
|
14
templates/files/nginx/sites/l3d.space_tls.conf
Normal file
14
templates/files/nginx/sites/l3d.space_tls.conf
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
server {
|
||||||
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
|
||||||
|
server_name l3d.space;
|
||||||
|
|
||||||
|
include snippets/tls_parameters_{{ site.name }}.snippet.conf;
|
||||||
|
include snippets/tls_certificate_{{ site.name }}.snippet.conf;
|
||||||
|
include snippets/logging_{{ site.name }}.snippet.conf;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
return 418;
|
||||||
|
}
|
||||||
|
}
|
14
templates/files/nginx/sites/www.ansible.l3d.space_tls.conf
Normal file
14
templates/files/nginx/sites/www.ansible.l3d.space_tls.conf
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
server {
|
||||||
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
|
||||||
|
server_name www.ansible.l3d.space;
|
||||||
|
|
||||||
|
include snippets/tls_parameters_{{ site.name }}.snippet.conf;
|
||||||
|
include snippets/tls_certificate_{{ site.name }}.snippet.conf;
|
||||||
|
include snippets/logging_{{ site.name }}.snippet.conf;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
return 308 https://github.com/roles-ansible/;
|
||||||
|
}
|
||||||
|
}
|
14
templates/files/nginx/sites/www.l3d.space_tls.conf
Normal file
14
templates/files/nginx/sites/www.l3d.space_tls.conf
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
server {
|
||||||
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
|
||||||
|
server_name www.l3d.space;
|
||||||
|
|
||||||
|
include snippets/tls_parameters_{{ site.name }}.snippet.conf;
|
||||||
|
include snippets/tls_certificate_{{ site.name }}.snippet.conf;
|
||||||
|
include snippets/logging_{{ site.name }}.snippet.conf;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
return 418;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue