2022-02-04 10:20:10 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- 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: grafana/loki-docker-driver:latest
|
|
|
|
state: enabled
|
2022-02-04 10:59:51 +01:00
|
|
|
|
|
|
|
|
|
|
|
- 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
|
2022-02-04 10:20:10 +01:00
|
|
|
notify: Restart Docker
|