Added all files
This commit is contained in:
13
examples/022_with_dict/roles/nginx/templates/nginx.conf.j2
Normal file
13
examples/022_with_dict/roles/nginx/templates/nginx.conf.j2
Normal file
@@ -0,0 +1,13 @@
|
||||
upstream {{ item.key }} {
|
||||
{% for server in groups.webserver %}
|
||||
server {{ server }}:{{ item.value.backend }};
|
||||
{% endfor %}
|
||||
}
|
||||
|
||||
server {
|
||||
listen {{ item.value.frontend }};
|
||||
|
||||
location / {
|
||||
proxy_pass http://{{ item.key }};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user