roles/promtail-agent: udpate

This commit is contained in:
Haitao Pan 2023-03-24 12:00:29 +08:00
parent 2b1249c9aa
commit 8f0a6c8bca

View File

@ -1,7 +1,3 @@
- name: Remove fluent-bit service
shell: "systemctl disable fluent-bit && systemctl stop fluent-bit"
when: inventory_hostname in groups[group]
- name: Pre setting
shell: "rm -f /usr/bin/promtail; mkdir -pv /etc/promtail/ && touch /var/log/positions.yaml"
when: inventory_hostname in groups[group]