ansiblize daemon.json
This commit is contained in:
@@ -208,6 +208,11 @@
|
|||||||
dest: "/etc/borgmatic/config.yaml"
|
dest: "/etc/borgmatic/config.yaml"
|
||||||
state: "absent"
|
state: "absent"
|
||||||
regexp: "^.*encryption_passphrase"
|
regexp: "^.*encryption_passphrase"
|
||||||
|
- name: Copy per-server docker daemon.json
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: "./templates/{{ inventory_hostname }}/daemon.json"
|
||||||
|
dest: /etc/docker/daemon.json
|
||||||
|
mode: preserve
|
||||||
handlers:
|
handlers:
|
||||||
- name: Restart sshd
|
- name: Restart sshd
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
|
18
all/templates/eu/daemon.json
Normal file
18
all/templates/eu/daemon.json
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"experimental": true,
|
||||||
|
"ip6tables": true,
|
||||||
|
"ipv6": true,
|
||||||
|
"fixed-cidr-v6": "fd00::/64",
|
||||||
|
"log-driver": "local",
|
||||||
|
"default-address-pools": [
|
||||||
|
{ "base": "172.17.0.0/16", "size": 16 },
|
||||||
|
{ "base": "172.18.0.0/16", "size": 16 },
|
||||||
|
{ "base": "172.19.0.0/16", "size": 16 },
|
||||||
|
{ "base": "172.20.0.0/14", "size": 16 },
|
||||||
|
{ "base": "172.24.0.0/14", "size": 16 },
|
||||||
|
{ "base": "172.28.0.0/14", "size": 16 },
|
||||||
|
{ "base": "192.168.0.0/16", "size": 20 },
|
||||||
|
{ "base": "2001:db8::/104", "size": 112 }
|
||||||
|
]
|
||||||
|
|
||||||
|
}
|
13
all/templates/in/daemon.json
Normal file
13
all/templates/in/daemon.json
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"ipv6": true,
|
||||||
|
"log-driver": "local",
|
||||||
|
"fixed-cidr-v6": "2001:db8:1::/64",
|
||||||
|
"default-address-pools": [
|
||||||
|
{
|
||||||
|
"base": "172.80.0.0/16",
|
||||||
|
"size": 24
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"experimental": true,
|
||||||
|
"ip6tables": true
|
||||||
|
}
|
5
all/templates/us/daemon.json
Normal file
5
all/templates/us/daemon.json
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"log-driver": "local",
|
||||||
|
"ipv6": true,
|
||||||
|
"fixed-cidr-v6": "fd00:dead:beef::/48"
|
||||||
|
}
|
Reference in New Issue
Block a user