ansible: Correct condition for `ci_role` promtail tag
authorKienan Stewart <kstewart@efficios.com>
Tue, 15 Oct 2024 17:50:11 +0000 (13:50 -0400)
committerKienan Stewart <kstewart@efficios.com>
Tue, 15 Oct 2024 17:50:11 +0000 (13:50 -0400)
Change-Id: I1e4805cd11528246ea14f510637c26e1b539d053
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
automation/ansible/roles/common/templates/promtail.config.yml.j2

index 0282f37a3f6efb0892a693038b5c311fa230d1af..5322b584e591f39f50e1289cf343df618f045d7b 100644 (file)
@@ -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:
This page took 0.026388 seconds and 4 git commands to generate.