add a default page
This commit is contained in:
parent
4d02357c78
commit
9d9d2a6a58
@ -13,6 +13,14 @@
|
||||
group: nginx
|
||||
mode: 0750
|
||||
|
||||
- name: Add default page
|
||||
template:
|
||||
src: 'var/www/vhosts/default.j2'
|
||||
dest: '/evar/www/vhosts/default'
|
||||
owner: nginx
|
||||
group: nginx
|
||||
mode: 0750
|
||||
|
||||
- name: Update nginx.conf
|
||||
template:
|
||||
src: 'etc/nginx/nginx.conf.j2'
|
||||
|
@ -4,7 +4,7 @@ server {
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
root /var/www/vhosts/default;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
user nginx;
|
||||
worker_processes 1;
|
||||
|
||||
|
2
templates/var/www/vhosts/default.j2
Normal file
2
templates/var/www/vhosts/default.j2
Normal file
@ -0,0 +1,2 @@
|
||||
# {{ ansible_managed }}
|
||||
{{ ansible_hostname }}
|
Loading…
Reference in New Issue
Block a user