summaryrefslogtreecommitdiffstats
path: root/docker/ansible/roles/run_grafana/vars
diff options
context:
space:
mode:
Diffstat (limited to 'docker/ansible/roles/run_grafana/vars')
-rw-r--r--docker/ansible/roles/run_grafana/vars/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/ansible/roles/run_grafana/vars/main.yml b/docker/ansible/roles/run_grafana/vars/main.yml
index 0975b598..5caf45da 100644
--- a/docker/ansible/roles/run_grafana/vars/main.yml
+++ b/docker/ansible/roles/run_grafana/vars/main.yml
@@ -13,5 +13,5 @@
# limitations under the License.
---
-influxdb_hostname: localhost
-influxdb_host_ip: 127.0.0.1
+influxdb_hostname: influxdb_host
+influxdb_host_ip: "{{ (groups['influxdb_hosts']|default({}))[0] | default('localhost') }}"