df84780f02
* Added condition to use new autoindex variable * Added condition to use new autoindex variable for separate virtual hosts * Added global autoindex and autoindex for separate virutal hosts * Added autoindex enabling for virtual host namespace * Added autoindex enabling for virtual host namespace variable * Added autoindex for testing puprposes * Changed autoindex to false * Added autoindex for virtual host * Added autoindex ot readme file
26 lines
668 B
YAML
26 lines
668 B
YAML
---
|
|
- hosts: localhost
|
|
become: true
|
|
remote_user: root
|
|
roles:
|
|
- ansible-role-nginx
|
|
vars:
|
|
nginx_http_template_enable: true
|
|
nginx_http_template:
|
|
default:
|
|
template_file: http/default.conf.j2
|
|
conf_file_name: default.conf
|
|
conf_file_location: /etc/nginx/conf.d/
|
|
port: 80
|
|
server_name: localhost
|
|
error_page: /usr/share/nginx/html
|
|
autoindex: false
|
|
web_server:
|
|
locations:
|
|
default:
|
|
location: /
|
|
html_file_location: /usr/share/nginx/html
|
|
html_file_name: index.html
|
|
autoindex: false
|
|
http_demo_conf: false
|