Skip to content

Commit

Permalink
fix promtail & loki config var issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Vonng committed Apr 8, 2022
1 parent cc87567 commit 100f318
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions roles/loki/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
tags: loki_config
block:

- name: Make sure loki data & rule dir exists
file: path={{ loki_data_dir }}/data/rules/fake state=directory owner=prometheus

- name: Copy loki systemd service
copy: src=loki.service dest=/usr/lib/systemd/system/loki.service

Expand Down
2 changes: 1 addition & 1 deletion roles/promtail/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
- name: Cleanup promtail positions
tags: promtail_clean
when: promtail_enabled|bool and promtail_clean|bool
file: path= state=absent
file: path={{ promtail_positions }} state=absent

#------------------------------------------------------------------------------
# Config
Expand Down

0 comments on commit 100f318

Please sign in to comment.