xoxys.kernel/tasks/kernel.yml
Robert Kaussow be184663af
All checks were successful
ci/woodpecker/push/notify Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
ci: migrate to woodpecker
2024-02-18 13:46:52 +01:00

31 lines
761 B
YAML

---
- name: Set default kernel hardening parameters
ansible.builtin.template:
src: etc/sysctl.d/99-local.conf.j2
dest: /etc/sysctl.d/99-local.conf
owner: root
group: root
mode: "0644"
notify: __kernel_reload
- name: Deploy custom kernel configurations
ansible.builtin.template:
src: etc/sysctl.d/xx-custom.conf.j2
dest: "/etc/sysctl.d/{{ item.file }}.conf"
owner: root
group: root
mode: "0644"
loop: "{{ kernel_custom_config }}"
loop_control:
label: "{{ item.file }}"
notify: __kernel_reload
- name: Deploy custom modprobe
ansible.builtin.template:
src: etc/modprobe.d/custom.conf.j2
dest: /etc/modprobe.d/custom.conf
owner: root
group: root
mode: "0644"
notify: __kernel_reload