From 050e2b39a0b62dfa9e6d4a4d2bf1db994e3ba14e Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Mon, 17 Apr 2023 17:47:15 +0200 Subject: [PATCH] Increase Docker Network Count --- .../plays/templates/docker-daemon.json.j2 | 4 ++++ coreos-config/plays/vps.yaml | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 coreos-config/plays/templates/docker-daemon.json.j2 diff --git a/coreos-config/plays/templates/docker-daemon.json.j2 b/coreos-config/plays/templates/docker-daemon.json.j2 new file mode 100644 index 0000000..19781cb --- /dev/null +++ b/coreos-config/plays/templates/docker-daemon.json.j2 @@ -0,0 +1,4 @@ +{ + "bip": "10.254.1.1/24", + "default-address-pools":[{"base":"10.254.0.0/17","size":26}] +} diff --git a/coreos-config/plays/vps.yaml b/coreos-config/plays/vps.yaml index abddf9a..0177ab5 100644 --- a/coreos-config/plays/vps.yaml +++ b/coreos-config/plays/vps.yaml @@ -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 hosts: host.nc.chaoswg.org vars: