Files
ansible_role_proxmox_provision/tasks/kernel.yml
Jose 4ea7833055
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 12s
Gitleaks Scan / gitleaks (push) Successful in 7s
Markdown Lint / markdown-lint (push) Successful in 4s
refactor ♻️: Refactor kernel panic configuration with ansible.posix.sysctl for better management and readability
This refactoring involves updating the kernel panic configuration management to utilize the `ansible.posix.sysctl` module. This change enhances the clarity and maintainability of the code by providing a more structured approach to handling system settings.
2026-02-15 08:36:22 +01:00

15 lines
462 B
YAML

---
# -------------------------------------------------
# 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' }