mirror of
https://github.com/V4bel/dirtyfrag.git
synced 2026-05-16 10:50:10 +00:00
Force /bin/false return on dependent or forced load attempts
This commit is contained in:
parent
597651c526
commit
984f04e739
1 changed files with 8 additions and 0 deletions
|
|
@ -35,3 +35,11 @@
|
|||
state: present
|
||||
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 }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue