Merge branch 'docker'

This commit is contained in:
Stefan Haun 2020-12-11 17:26:06 +01:00
commit caf8aa479e
3 changed files with 15 additions and 9 deletions

View file

@ -0,0 +1,4 @@
docker_compose_version: "1.25.4"
docker_compose_path: /usr/local/bin/docker-compose
docker_data_root: "/var/lib/docker"
docker_storage_driver: "overlay2"

View file

@ -45,16 +45,9 @@
- python-docker - python-docker
- name: Set docker configuration - name: Set docker configuration
copy: template:
src: templates/daemon.json.j2
dest: /etc/docker/daemon.json dest: /etc/docker/daemon.json
content: |
{
"exec-opts": ["native.cgroupdriver=systemd"],
"log-driver": "json-file",
"log-opts": {
"max-size": "100m"
}
}
notify: restart docker notify: restart docker
- name: Check current docker-compose version. - name: Check current docker-compose version.

View file

@ -0,0 +1,9 @@
{
"exec-opts": ["native.cgroupdriver=systemd"],
"log-driver": "json-file",
"log-opts": {
"max-size": "100m"
},
"data-root": "{{ docker_data_root }}",
"storage-driver": "{{ docker_storage_driver }}"
}