From fa5c7abdb756c2faf17173d801eefd6dc6f62d05 Mon Sep 17 00:00:00 2001 From: Rottler Tamas Date: Tue, 18 Nov 2025 22:26:08 +0100 Subject: [PATCH] debian 13 --- tasks/debian.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tasks/debian.yml b/tasks/debian.yml index d377612..cf563ac 100644 --- a/tasks/debian.yml +++ b/tasks/debian.yml @@ -15,10 +15,19 @@ src: sysstat_minutely.patch dest: /etc/cron.d/sysstat +- name: set sysctl conf file name + set_fact: + sysctlconf: /etc/sysctl.conf +- name: set sysctl conf file name for Debian 13-99 + set_fact: + sysctlconf: /etc/sysctl.d/disable_ipv6.conf + when: (ansible_distribution == "Debian" and ansible_distribution_major_version|int() >= 13) + - name: disable IPv6 in sysctl.conf lineinfile: - dest: /etc/sysctl.conf + dest: "{{ sysctlconf }}" state: present + create: yes regexp: "^{{ item.a }}" line: "{{ item.a }} = {{ item.v }}" with_items: @@ -27,4 +36,5 @@ - { a: "net.ipv6.conf.lo.disable_ipv6", v: 1 } when: "'ipv6' not in group_names" + # vim: set tabstop=2 shiftwidth=2 expandtab smarttab: