Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions ansible/tasks/setup-system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,25 +168,6 @@
value: '9187,8085'
state: 'present'

- name: Execute tasks when (debpkg_mode or nixpkg_mode)
when:
- (debpkg_mode or nixpkg_mode)
block:
# Set Sysctl params for restarting the OS on OOM after 10
- name: Set vm.panic_on_oom=1
ansible.builtin.sysctl:
name: 'vm.panic_on_oom'
reload: true
state: 'present'
value: '1'

- name: Set kernel.panic=10
ansible.builtin.sysctl:
name: 'kernel.panic'
reload: true
state: 'present'
value: '10'

- name: set hosts file
ansible.builtin.copy:
content: |
Expand Down
13 changes: 13 additions & 0 deletions ansible/tasks/setup-tuned.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,19 @@
value: 10


- name: tuned - Set ip_local_reserved_ports
become: true
community.general.ini_file:
create: true
group: 'root'
mode: '0644'
no_extra_spaces: true
option: 'net.ipv4.ip_local_reserved_ports'
path: '/etc/tuned/profiles/postgresql/tuned.conf'
section: 'sysctl'
state: 'present'
value: '3000,3001,8085,9122,9187,9999'

- name: tuned - Set tcp_keepalive_time
become: true
community.general.ini_file:
Expand Down
Loading