Disable IPv6 for Docker
This commit is contained in:
parent
c485253e97
commit
40e1215bc0
|
@ -4,7 +4,5 @@
|
|||
"base": "172.17.0.0/16",
|
||||
"size": 24
|
||||
}
|
||||
],
|
||||
"ipv6": true,
|
||||
"fixed-cidr-v6": "fd00::/80"
|
||||
]
|
||||
}
|
||||
|
|
8
roles/docker_services/handlers/main.yml
Normal file
8
roles/docker_services/handlers/main.yml
Normal 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
|
|
@ -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
|
||||
|
|
Reference in a new issue