Robert Kaussow
fd59ad7165
All checks were successful
continuous-integration/drone/push Build is passing
27 lines
655 B
Django/Jinja
27 lines
655 B
Django/Jinja
#jinja2: lstrip_blocks: True
|
|
{{ ansible_managed | comment }}
|
|
|
|
{% if prometheus_web_tls_enabled | bool %}
|
|
tls_server_config:
|
|
cert_file: {{ prometheus_web_tls_cert_path }}
|
|
key_file: {{ prometheus_web_tls_key_path }}
|
|
{% else %}
|
|
tls_server_config: {}
|
|
{% endif %}
|
|
{% if prometheus_web_http_server is defined %}
|
|
|
|
http_server_config:
|
|
{{ prometheus_web_http_server | to_nice_yaml(indent=2) | indent(2,False) }}
|
|
{% else %}
|
|
|
|
http_server_config: {}
|
|
{% endif %}
|
|
{% if prometheus_web_basic_auth_users is defined %}
|
|
|
|
basic_auth_users:
|
|
{{ prometheus_web_basic_auth_users | to_nice_yaml(indent=2) | indent(2,False) }}
|
|
{% else %}
|
|
|
|
basic_auth_users: {}
|
|
{% endif %}
|