set vm.max_map_count, fixes #1618

This commit is contained in:
t3chn0m4g3 2024-12-10 15:48:17 +01:00
parent 1d3cc7cd4a
commit e8dc0c9c3d
2 changed files with 31 additions and 0 deletions

View file

@ -477,6 +477,22 @@
- "Rocky" - "Rocky"
- "Ubuntu" - "Ubuntu"
- name: Ensure vm.max_map_count is set (All)
lineinfile:
path: /etc/sysctl.conf
line: "vm.max_map_count=262144"
state: present
create: yes
when: ansible_distribution in ["AlmaLinux", "Debian", "Fedora", "openSUSE Tumbleweed", "Raspbian", "Rocky", "Ubuntu"]
tags:
- "AlmaLinux"
- "Debian"
- "Fedora"
- "openSUSE Tumbleweed"
- "Raspbian"
- "Rocky"
- "Ubuntu"
- name: Disable ssh.socket unit (Ubuntu) - name: Disable ssh.socket unit (Ubuntu)
systemd: systemd:
name: ssh.socket name: ssh.socket

View file

@ -215,6 +215,21 @@
- "Rocky" - "Rocky"
- "Ubuntu" - "Ubuntu"
- name: Remove vm.max_map_count setting (All)
lineinfile:
path: /etc/sysctl.conf
line: "vm.max_map_count=262144"
state: absent
when: ansible_distribution in ["AlmaLinux", "Debian", "Fedora", "openSUSE Tumbleweed", "Raspbian", "Rocky", "Ubuntu"]
tags:
- "AlmaLinux"
- "Debian"
- "Fedora"
- "openSUSE Tumbleweed"
- "Raspbian"
- "Rocky"
- "Ubuntu"
- name: Remove T-Pot user (All) - name: Remove T-Pot user (All)
user: user:
name: tpot name: tpot