feat(loki): add role for deployment using ansible
This commit is contained in:
10
roles/loki/handlers/main.yml
Normal file
10
roles/loki/handlers/main.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: Ensure loki is reloaded
|
||||
listen: loki_reload
|
||||
community.docker.docker_container:
|
||||
name: "{{ loki_container_name }}"
|
||||
state: "started"
|
||||
restart: true
|
||||
force_kill: true
|
||||
kill_signal: "HUP"
|
||||
when: "loki_container_state in ['started', 'present']"
|
Reference in New Issue
Block a user