Skip to content

Commit eb11b5e

Browse files
variable cleanup
1 parent 2babbc9 commit eb11b5e

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

group_vars/all.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
---
2-
# Ansible connection variables
3-
ansible_ssh_private_key_file: "/home/beard/.ssh/master-key.pem"
4-
52
# geerlingguy.pip variables
63
pip_install_packages:
74
- name: docker

group_vars/exporter_nodes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ firewall_allowed_tcp_ports:
77

88
# loki-docker-plugin variables
99
skip_loki_url_verification: true
10-
loki_url: "http://{{ hostvars['central_node']['ansible_host'] }}:3100"
10+
loki_url: "{{ hostvars['central_node']['loki_url'] }}"
1111

1212
# exporter-node role variables
1313
reverse_proxy_setup: false

host_vars/central_node.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ services_endopoints:
2020

2121
# loki-docker-plugin variables
2222
skip_loki_url_verification: true
23-
loki_url: "http://{{ ansible_host }}:3100"
23+
loki_url: "http://{{ ansible_host }}:{{ services_endopoints.loki }}"

hosts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
central_node ansible_host= ansible_user=ubuntu
1+
central_node ansible_host=1.2.3.4 ansible_user=ubuntu
22

33
[exporter_nodes]
4-
exporter_node_1 ansible_host= ansible_user=ubuntu
4+
5.6.7.8 ansible_user=ubuntu

0 commit comments

Comments
 (0)