Move docker root
This commit is contained in:
parent
0766d21420
commit
d3bc1a89bb
3 changed files with 9 additions and 2 deletions
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd {{ server.work_dir }} && borg create --stats -C zstd,22 --progress "{{ server.backup_dir }}::$(date --iso-8601=seconds)" .
|
cd {{ server.work_dir }} && borg create --stats -C zstd,22 --progress "{{ server.backup_dir }}::$(date --iso-8601=seconds)" . --exclude "{{ server.work_dir }}/docker"
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
|
# TODO : Copy template into /etc/docker/daemon.json
|
||||||
|
|
||||||
- name: set mydistribution
|
- name: set mydistribution
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
mydistribution: "{{ ansible_distribution | lower }}"
|
mydistribution: "{{ ansible_distribution | lower }}"
|
||||||
|
@ -36,4 +39,4 @@
|
||||||
community.docker.docker_network:
|
community.docker.docker_network:
|
||||||
name: metrics
|
name: metrics
|
||||||
state: present
|
state: present
|
||||||
become: true
|
become: true
|
||||||
|
|
4
roles/docker/templates/daemon.json
Normal file
4
roles/docker/templates/daemon.json
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"data-root": "{{ server.work_dir }}/docker"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue