From 0db1779c91dd3334f967d3ac645c2d936ee1c7cd Mon Sep 17 00:00:00 2001 From: Douglas J Hunley Date: Tue, 9 Jun 2026 15:43:39 -0400 Subject: [PATCH 1/2] ansible: move ip_local_port_range to tuned profile --- ansible/tasks/setup-system.yml | 4 ---- ansible/tasks/setup-tuned.yml | 13 +++++++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ansible/tasks/setup-system.yml b/ansible/tasks/setup-system.yml index 2feddaaf2..980dc491f 100644 --- a/ansible/tasks/setup-system.yml +++ b/ansible/tasks/setup-system.yml @@ -211,7 +211,3 @@ name: 'net.core.somaxconn' value: 16834 -- name: configure system - ansible.posix.sysctl: - name: 'net.ipv4.ip_local_port_range' - value: '1025 65000' diff --git a/ansible/tasks/setup-tuned.yml b/ansible/tasks/setup-tuned.yml index c7dfb7fa1..fdb9ef1ea 100644 --- a/ansible/tasks/setup-tuned.yml +++ b/ansible/tasks/setup-tuned.yml @@ -111,6 +111,19 @@ state: 'present' value: 10 + + - name: tuned - Set ip_local_port_range + become: true + community.general.ini_file: + create: true + group: 'root' + mode: '0644' + no_extra_spaces: true + option: 'net.ipv4.ip_local_port_range' + path: '/etc/tuned/profiles/postgresql/tuned.conf' + section: 'sysctl' + state: 'present' + value: "'1025 65000'" - name: tuned - Load zstd compressor module become: true community.general.modprobe: From 255ff114d67c262c2d9b220e984b9effab9ccc6f Mon Sep 17 00:00:00 2001 From: Douglas J Hunley Date: Tue, 9 Jun 2026 15:52:28 -0400 Subject: [PATCH 2/2] ansible: update ip_local_port_range value --- ansible/tasks/setup-tuned.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/tasks/setup-tuned.yml b/ansible/tasks/setup-tuned.yml index fdb9ef1ea..46e3fb4e4 100644 --- a/ansible/tasks/setup-tuned.yml +++ b/ansible/tasks/setup-tuned.yml @@ -123,7 +123,7 @@ path: '/etc/tuned/profiles/postgresql/tuned.conf' section: 'sysctl' state: 'present' - value: "'1025 65000'" + value: '1025 65499' - name: tuned - Load zstd compressor module become: true community.general.modprobe: