From 1dc77e3d69dfd7d9d30c7c53ac2e26bd93a8b1b5 Mon Sep 17 00:00:00 2001 From: phil Date: Wed, 7 Apr 2021 13:30:33 +0200 Subject: [PATCH] desactive ipv6 avec sysctl - role base --- roles/base/tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml index c4b3c00..28503b1 100644 --- a/roles/base/tasks/main.yml +++ b/roles/base/tasks/main.yml @@ -7,6 +7,14 @@ copy: src=apt.conf dest=/etc/apt/apt.conf when: ansible_hostname != "s-adm" +- name: Sysctl : desactive ipv6 + sysctl: + name: net.ipv6.conf.all.disable_ipv6 + value: 1 + sysctl_set: yes + state: present + reload: yes + - name: Update + Upgrade apt: upgrade: yes