From 0bf7171a916b42f46b565913e6cf946c0b9651c5 Mon Sep 17 00:00:00 2001 From: Douglas J Hunley Date: Tue, 9 Jun 2026 15:40:53 -0400 Subject: [PATCH] ansible: move somaxconn to tuned profile --- ansible/tasks/setup-system.yml | 5 ----- ansible/tasks/setup-tuned.yml | 13 +++++++++++++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ansible/tasks/setup-system.yml b/ansible/tasks/setup-system.yml index 2feddaaf2..7d7f4077a 100644 --- a/ansible/tasks/setup-system.yml +++ b/ansible/tasks/setup-system.yml @@ -206,11 +206,6 @@ when: - (debpkg_mode or stage2_nix) -- name: configure system - ansible.posix.sysctl: - name: 'net.core.somaxconn' - value: 16834 - - name: configure system ansible.posix.sysctl: name: 'net.ipv4.ip_local_port_range' diff --git a/ansible/tasks/setup-tuned.yml b/ansible/tasks/setup-tuned.yml index c7dfb7fa1..9974a5791 100644 --- a/ansible/tasks/setup-tuned.yml +++ b/ansible/tasks/setup-tuned.yml @@ -111,6 +111,19 @@ state: 'present' value: 10 + + - name: tuned - Set somaxconn + become: true + community.general.ini_file: + create: true + group: 'root' + mode: '0644' + no_extra_spaces: true + option: 'net.core.somaxconn' + path: '/etc/tuned/profiles/postgresql/tuned.conf' + section: 'sysctl' + state: 'present' + value: 16834 - name: tuned - Load zstd compressor module become: true community.general.modprobe: