ansible-roles/roles/consul/templates/profile.sh.j2

6 lines
153 B
Django/Jinja

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