mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-19 21:52:27 +00:00
set vm.max_map_count, fixes #1618
This commit is contained in:
parent
1d3cc7cd4a
commit
e8dc0c9c3d
2 changed files with 31 additions and 0 deletions
|
@ -477,6 +477,22 @@
|
|||
- "Rocky"
|
||||
- "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)
|
||||
systemd:
|
||||
name: ssh.socket
|
||||
|
|
|
@ -215,6 +215,21 @@
|
|||
- "Rocky"
|
||||
- "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)
|
||||
user:
|
||||
name: tpot
|
||||
|
|
Loading…
Reference in a new issue