From 2ed3e6845d312a848577605ded62548d5075dba8 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Tue, 15 Oct 2024 13:50:11 -0400 Subject: [PATCH] ansible: Correct condition for `ci_role` promtail tag Change-Id: I1e4805cd11528246ea14f510637c26e1b539d053 Signed-off-by: Kienan Stewart --- .../ansible/roles/common/templates/promtail.config.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/ansible/roles/common/templates/promtail.config.yml.j2 b/automation/ansible/roles/common/templates/promtail.config.yml.j2 index 0282f37..5322b58 100644 --- a/automation/ansible/roles/common/templates/promtail.config.yml.j2 +++ b/automation/ansible/roles/common/templates/promtail.config.yml.j2 @@ -9,7 +9,7 @@ scrape_configs: labels: host: "{{inventory_hostname}}" job: systemd-journal - ci_role: "{{(inventory_hostname in group_names)|ternary('host', 'ci-node')}}" + ci_role: "{{('hosts' in group_names)|ternary('host', 'ci-node')}}" max_age: 1h relabel_configs: - source_labels: -- 2.34.1