add a default page

This commit is contained in:
Robert Kaussow 2017-07-15 17:49:44 +02:00
parent 4d02357c78
commit 9d9d2a6a58
4 changed files with 11 additions and 2 deletions

View File

@ -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'

View File

@ -4,7 +4,7 @@ server {
server_name localhost;
location / {
root /usr/share/nginx/html;
root /var/www/vhosts/default;
index index.html index.htm;
}

View File

@ -1,5 +1,4 @@
# {{ ansible_managed }}
user nginx;
worker_processes 1;

View File

@ -0,0 +1,2 @@
# {{ ansible_managed }}
{{ ansible_hostname }}