Force /bin/false return on dependent or forced load attempts

This commit is contained in:
RageLtMan 2026-05-08 13:31:17 -04:00
parent 597651c526
commit 984f04e739

View file

@ -35,3 +35,11 @@
state: present state: present
loop: "{{ modules_to_blacklist }}" loop: "{{ modules_to_blacklist }}"
- name: Force /bin/false return on attempts to load kernel modules
lineinfile:
path: /etc/modprobe.d/blacklist.conf
line: "install {{ item }} /bin/false"
create: yes
mode: '0644'
state: present
loop: "{{ modules_to_blacklist }}"