From ab2dd24814ebefffc10621a2351c8ce614e77158 Mon Sep 17 00:00:00 2001 From: Vincent Finance Date: Thu, 9 Jan 2025 21:15:12 +0100 Subject: [PATCH] Add missing step for rules in Prometheus --- ansible/roles/prometheus/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/roles/prometheus/tasks/main.yml b/ansible/roles/prometheus/tasks/main.yml index 8c5334b..25525ae 100644 --- a/ansible/roles/prometheus/tasks/main.yml +++ b/ansible/roles/prometheus/tasks/main.yml @@ -20,6 +20,12 @@ notify: - restart prometheus +- name: Create folder for rules definition + ansible.builtin.file: + path: /etc/prometheus/rules + state: directory + mode: 0755 + - name: Add rules configuration tags: alertmanager-rules-configure ansible.builtin.copy: