Disable IPv6 for Docker

This commit is contained in:
Sam A. 2023-04-26 22:45:41 +02:00
parent c485253e97
commit 40e1215bc0
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
3 changed files with 12 additions and 10 deletions

View file

@ -4,7 +4,5 @@
"base": "172.17.0.0/16",
"size": 24
}
],
"ipv6": true,
"fixed-cidr-v6": "fd00::/80"
]
}

View file

@ -0,0 +1,8 @@
# vim: ft=yaml.ansible
---
- name: Reload Docker daemon
ansible.builtin.service:
name: docker
enabled: true
state: reloaded
listen: reload-dockerd

View file

@ -13,18 +13,14 @@
dest: /etc/docker/daemon.json
owner: root
mode: u=rw,g=r,o=r
register: daemon_config
notify: reload-dockerd
- name: (Re)start Docker daemon
ansible.builtin.service:
name: docker
enabled: true
state: "{{ 'restarted' if daemon_config.changed else 'started' }}"
- name: Flush handlers
ansible.builtin.meta: flush_handlers
- name: Create Docker network for services
community.docker.docker_network:
name: services
enable_ipv6: true
state: present
- name: Create Docker network for Tor