ansible-loki-role/tasks/docker_driver.yml
2022-03-04 14:43:35 +01:00

21 lines
466 B
YAML

---
- name: Install Loki docker driver
community.docker.docker_plugin:
plugin_name: grafana/loki-docker-driver:latest
alias: loki
state: present
- name: Enable Loki docker driver
community.docker.docker_plugin:
plugin_name: loki
state: enable
- name: Add docker deamon.json
ansible.builtin.template:
src: daemon.json.j2
dest: /etc/docker/daemon.json
owner: root
group: root
mode: u=rw,g=r,o=r
notify: Restart Docker