2021-05-31 14:44:26 +02:00
|
|
|
|
# {{ ansible_managed }}
|
|
|
|
|
{% if (prometheus_mongodb_exporter_user is defined) and (prometheus_mongodb_exporter_pass is defined) %}
|
2021-09-30 12:25:21 +02:00
|
|
|
|
MONGODB_URI=mongodb://{{ prometheus_mongodb_exporter_user }}:{{ prometheus_mongodb_exporter_pass }}@{{ prometheus_mongodb_exporter_host }}:{{ prometheus_mongodb_exporter_port }}/{{ prometheus_mongodb_exporter_database }}
|
2021-05-31 14:44:26 +02:00
|
|
|
|
{% else %}
|
2021-09-30 12:25:21 +02:00
|
|
|
|
MONGODB_URI=mongodb://{{ prometheus_mongodb_exporter_host }}:{{ prometheus_mongodb_exporter_port }}/{{ prometheus_mongodb_exporter_database }}
|
2021-05-31 14:44:26 +02:00
|
|
|
|
{% endif %}
|