Increase Docker Network Count
This commit is contained in:
parent
3b6a6d6080
commit
050e2b39a0
4
coreos-config/plays/templates/docker-daemon.json.j2
Normal file
4
coreos-config/plays/templates/docker-daemon.json.j2
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"bip": "10.254.1.1/24",
|
||||||
|
"default-address-pools":[{"base":"10.254.0.0/17","size":26}]
|
||||||
|
}
|
@ -1,3 +1,22 @@
|
|||||||
|
- name: Setup Docker Config
|
||||||
|
hosts: host.nc.chaoswg.org
|
||||||
|
become: true
|
||||||
|
become_user: root
|
||||||
|
tasks:
|
||||||
|
- name: Template Config
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: "docker-daemon.json.j2"
|
||||||
|
dest: /etc/docker/daemon.json
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: '0600'
|
||||||
|
register: docker_config
|
||||||
|
- name: Restart Docker
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
state: restarted
|
||||||
|
name: docker.service
|
||||||
|
when: docker_config.changed
|
||||||
|
|
||||||
- name: Setup VPS
|
- name: Setup VPS
|
||||||
hosts: host.nc.chaoswg.org
|
hosts: host.nc.chaoswg.org
|
||||||
vars:
|
vars:
|
||||||
|
Loading…
Reference in New Issue
Block a user