From 2203abeaf6983767d14502208586adcb4138c8c2 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Fri, 11 Dec 2020 17:25:08 +0100 Subject: [PATCH] Allow to set data root and storage driver for docker --- roles/docker/tasks/main.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index e232eb1..b2e0685 100644 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -45,16 +45,9 @@ - python-docker - name: Set docker configuration - copy: + template: + src: templates/daemon.json.j2 dest: /etc/docker/daemon.json - content: | - { - "exec-opts": ["native.cgroupdriver=systemd"], - "log-driver": "json-file", - "log-opts": { - "max-size": "100m" - } - } notify: restart docker - name: Check current docker-compose version.