From: Kienan Stewart Date: Tue, 15 Oct 2024 17:50:11 +0000 (-0400) Subject: ansible: Correct condition for `ci_role` promtail tag X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2ed3e6845d312a848577605ded62548d5075dba8;p=lttng-ci.git ansible: Correct condition for `ci_role` promtail tag Change-Id: I1e4805cd11528246ea14f510637c26e1b539d053 Signed-off-by: Kienan Stewart --- 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: