add ansible

This commit is contained in:
Vassiliy Yegorov
2022-11-15 10:30:03 +07:00
parent 2d44f9f8f8
commit a08e7b0120
31 changed files with 1172 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
---
- import_tasks: preflight.yml
tags:
- promtail_install
- promtail
- import_tasks: install.yml
become: True
tags:
- promtail_install
- promtail
- name: Ensure promtail service is started and enabled
become: True
systemd:
daemon_reload: True
name: "{{ promtail_systemd_service }}"
state: started
enabled: True
tags:
- promtail_run
- promtail