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: