From f105584fbae892b6103e15d9269174292198e6e1 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Sat, 23 Jul 2022 17:51:31 +0200 Subject: [PATCH] Disable IPv6 --- files/sysctl-no-ipv6.conf | 3 +++ platon.yml | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 files/sysctl-no-ipv6.conf diff --git a/files/sysctl-no-ipv6.conf b/files/sysctl-no-ipv6.conf new file mode 100644 index 0000000..8c41d94 --- /dev/null +++ b/files/sysctl-no-ipv6.conf @@ -0,0 +1,3 @@ +net.ipv6.conf.all.disable_ipv6 = 1 +net.ipv6.conf.default.disable_ipv6 = 1 +net.ipv6.conf.lo.disable_ipv6 = 1 diff --git a/platon.yml b/platon.yml index 64381d6..2b5b484 100644 --- a/platon.yml +++ b/platon.yml @@ -31,6 +31,15 @@ group: root mode: '0644' + - name: Disable IPv6 + # Because it is not working.... + ansible.builtin.copy: + src: files/sysctl-no-ipv6.conf + dest: /etc/sysctl.d/99-systcl-no-ipv6.conf + owner: root + group: root + mode: '0644' + ### Sesam for SSH access #