1
0
Fork 0

Add tasks to configure data-root of docker

This commit is contained in:
Florian RICHER 2023-12-21 22:40:42 +01:00
parent fb2523e443
commit 36aafc022a
3 changed files with 13 additions and 2 deletions

View file

@ -0,0 +1,10 @@
---
- name: Copy template conf
ansible.builtin.template:
src: "daemon.json"
dest: "/etc/docker/daemon.json"
group: root
owner: root
mode: '0600'
become: true

View file

@ -1,6 +1,8 @@
---
# TODO : Copy template into /etc/docker/daemon.json
- ansible.builtin.import_tasks: config.yml
name: config
become: true
- name: set mydistribution
ansible.builtin.set_fact:

View file

@ -1,4 +1,3 @@
{
"data-root": "{{ server.work_dir }}/docker"
}