{% if consul_conf.server %} export CONSUL_HTTP_ADDR=http://localhost:{{ consul_services.http.port }} {% else %} # not running in server mode {% endif %}