diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 7ca6600eda..2fd8f4b380 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -236,6 +236,8 @@ backend hubs-backend {% endif %} option httpchk GET / + +{% if 'phx2' in inventory_hostname and env == 'production' %} frontend awx-frontend bind 0.0.0.0:10069 default_backend awx-backend @@ -244,6 +246,7 @@ backend awx-backend balance hdr(appserver) server batcomputer01 batcomputer01:80 check inter 10s rise 1 fall 2 option httpchk GET / +{% endif %} # IMPORTANT: 10023-10026 will NOT work because of selinux policies