From 78ba346223cc2c249b365088043a1ddecafe3ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Tue, 13 Feb 2024 16:07:20 +0000 Subject: [PATCH] add option to manage sysctl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- defaults/main/sysctl.yml | 2 ++ tasks/main.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/defaults/main/sysctl.yml b/defaults/main/sysctl.yml index 751f977a..1e4e19a4 100644 --- a/defaults/main/sysctl.yml +++ b/defaults/main/sysctl.yml @@ -1,4 +1,6 @@ --- +manage_sysctl: true + sysctl_dev_tty_ldisc_autoload: 0 ipv4_sysctl_settings: diff --git a/tasks/main.yml b/tasks/main.yml index 584cdc6e..36287e2c 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -27,6 +27,7 @@ ansible.builtin.include_tasks: file: sysctl.yml when: + - manage_sysctl - ansible_virtualization_type not in ["container", "docker", "podman"] - name: Disable kernel modules