Add tasks to configure data-root of docker
This commit is contained in:
parent
fb2523e443
commit
36aafc022a
3 changed files with 13 additions and 2 deletions
10
roles/docker/tasks/config.yml
Normal file
10
roles/docker/tasks/config.yml
Normal 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
|
|
@ -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:
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
{
|
||||
"data-root": "{{ server.work_dir }}/docker"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue