Merge pull request 'feat : Add task to configure kernel panic behavior and auto-reboot' (#29) from dev into main
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 12s
Gitleaks Scan / gitleaks (push) Successful in 4s
Markdown Lint / markdown-lint (push) Successful in 5s

Reviewed-on: #29
This commit was merged in pull request #29.
This commit is contained in:
2026-02-15 08:41:04 +01:00
2 changed files with 17 additions and 0 deletions

14
tasks/kernel.yml Normal file
View File

@@ -0,0 +1,14 @@
---
# -------------------------------------------------
# Configure kernel panic behavior
# -------------------------------------------------
- name: kernel | Configure kernel panic auto-reboot
ansible.posix.sysctl:
name: "{{ item.key }}"
value: "{{ item.value }}"
state: present
sysctl_file: /etc/sysctl.d/99-kernelpanic.conf
reload: yes
loop:
- { key: 'kernel.panic', value: '10' }
- { key: 'kernel.panic_on_oops', value: '1' }

View File

@@ -36,3 +36,6 @@
- name: Install powertop, auto-tune, and make it persistent
ansible.builtin.import_tasks: powertop.yml
- name: Configure kernel panic auto-reboot
ansible.builtin.import_tasks: kernel.yml