From f056e3b21ed587e96f8d0ff28d3eec568eb88f89 Mon Sep 17 00:00:00 2001 From: fumingwei Date: Thu, 20 May 2021 11:06:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=90=AF=E7=94=A8docker=E7=9A=84iptab?= =?UTF-8?q?les=20rules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsg-9140-scripts/roles/docker/files/daemon.json | 1 + tsg-9140-scripts/roles/docker/tasks/main.yml | 4 ++++ tsg-9140-scripts/tsg_9140_deploy.yml | 1 + 3 files changed, 6 insertions(+) create mode 100644 tsg-9140-scripts/roles/docker/files/daemon.json create mode 100644 tsg-9140-scripts/roles/docker/tasks/main.yml diff --git a/tsg-9140-scripts/roles/docker/files/daemon.json b/tsg-9140-scripts/roles/docker/files/daemon.json new file mode 100644 index 00000000..c34d29fc --- /dev/null +++ b/tsg-9140-scripts/roles/docker/files/daemon.json @@ -0,0 +1 @@ +{"iptables":false,"bridge": "none"} diff --git a/tsg-9140-scripts/roles/docker/tasks/main.yml b/tsg-9140-scripts/roles/docker/tasks/main.yml new file mode 100644 index 00000000..cb0ef6e3 --- /dev/null +++ b/tsg-9140-scripts/roles/docker/tasks/main.yml @@ -0,0 +1,4 @@ +- name: "docker: copy daemon.json to target" + copy: + src: '{{ role_path }}/files/daemon.json' + dest: /etc/docker/ \ No newline at end of file diff --git a/tsg-9140-scripts/tsg_9140_deploy.yml b/tsg-9140-scripts/tsg_9140_deploy.yml index c557a891..712a34c4 100644 --- a/tsg-9140-scripts/tsg_9140_deploy.yml +++ b/tsg-9140-scripts/tsg_9140_deploy.yml @@ -25,5 +25,6 @@ - {role: tfe, tags: tfe} - {role: telegraf_statistic, tags: telegraf_statistic} - {role: exporter, tags: exporter} + - {role: docker, tags: docker} - {role: tsg-diagnose, tags: tsg-diagnose} - {role: system-init, tags: system-init} \ No newline at end of file