Changed default value to jinja2 default vars

115-change-docker-root
thiuda 2021-06-03 20:41:12 +02:00
parent 60f58ad45b
commit f618c42d15
3 changed files with 1 additions and 4 deletions

View File

@ -1,2 +0,0 @@
change_docker_root: false
docker_root: /home/docker

View File

@ -50,4 +50,3 @@
src: templates/daemon.json.j2
dest: /etc/docker/daemon.json
mode: 0644
when: change_docker_root

View File

@ -1,3 +1,3 @@
{
"data-root": "{{ docker_root }}"
"data-root": "{{ docker_root | default(/var/lib/docker) }}"
}