Skip to content

Commit c78bcf8

Browse files
authored
Chore: adding sysctl params for rebooting the OS after oomkiller kills a process (#759)
1 parent d2eca9a commit c78bcf8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

ansible/tasks/setup-system.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,18 @@
131131
mode: 0644
132132
owner: root
133133
group: root
134+
135+
#Set Sysctl params for restarting the OS on oom after 10
136+
- name: Set vm.panic_on_oom=1
137+
ansible.builtin.sysctl:
138+
name: vm.panic_on_oom
139+
value: '1'
140+
state: present
141+
reload: yes
142+
143+
- name: Set kernel.panic=10
144+
ansible.builtin.sysctl:
145+
name: kernel.panic
146+
value: '10'
147+
state: present
148+
reload: yes

0 commit comments

Comments
 (0)