From e66431d9b6a65f8baa6eb2db9467d400be9a264b Mon Sep 17 00:00:00 2001 From: SebClem Date: Fri, 17 Dec 2021 17:56:38 +0100 Subject: [PATCH] :ambulance: Fix hostname --- defaults/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index f74460d..44c5d2d 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -91,12 +91,12 @@ promtail_scrape_config: journal: labels: job: node - host: "{{ ansible_hostname }}" + host: "{{ inventory_hostname }}" max_age: 12h relabel_configs: - - source_labels: - - __journal__systemd_unit - target_label: unit + - source_labels: + - __journal__systemd_unit + target_label: unit promtail_target_config: [] promtail_positions_config: