add dict for nodes name resolution

This commit is contained in:
Camille Prugnard 2021-10-01 16:20:55 +02:00
parent 7550799e9d
commit 7bffb508cd
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,9 @@ awh_services_docker_pull: "no"
prometheus_exporter_packages: [] prometheus_exporter_packages: []
prometheus_nodes_ip:
localhost: "127.0.0.1"
prometheus_mongodb_exporter_database: "database" prometheus_mongodb_exporter_database: "database"
prometheus_mongodb_exporter_host: "localhost" prometheus_mongodb_exporter_host: "localhost"
prometheus_mongodb_exporter_port: 27017 prometheus_mongodb_exporter_port: 27017

View File

@ -62,6 +62,7 @@
tag: docker_prometheus tag: docker_prometheus
restart_policy: 'unless-stopped' restart_policy: 'unless-stopped'
pull: '{{ awh_services_docker_pull }}' pull: '{{ awh_services_docker_pull }}'
etc_hosts: '{{ prometheus_nodes_ip }}'
tags: tags:
- prometheus - prometheus
notify: notify: