mirror of
https://github.com/Apress/Beginning-Ansible-Concepts-and-Application.git
synced 2024-11-10 01:17:43 +01:00
8 lines
229 B
Text
8 lines
229 B
Text
|
backend web_servers
|
||
|
balance roundrobin
|
||
|
cookie SERVERID insert indirect nocache
|
||
|
{% for host in groups.webservers %}
|
||
|
server {{ host }} {{ host }}:{{ hostvars[host].http_port }} check cookie {{ host }}
|
||
|
{% endfor %}
|
||
|
|