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.