From 506ffa724e3c0fea3016ed5cd1816360e92d56b4 Mon Sep 17 00:00:00 2001 From: Patrick Jahns Date: Wed, 24 Apr 2024 20:24:41 +0700 Subject: [PATCH] validate templated promtail config file (#221) Co-authored-by: Bryant Foresman --- tasks/install.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/install.yml b/tasks/install.yml index f6c3708..5ec2ea5 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -125,6 +125,7 @@ owner: root group: "{{ promtail_system_group }}" mode: 0644 + validate: /usr/local/bin/promtail -config.file %s -check-syntax - name: Create systemd service unit notify: