add tasks to remove floppy drivers

This commit is contained in:
Andreas Zweili 2021-10-25 13:12:07 +02:00
parent 7673474313
commit 4982ddc855
2 changed files with 13 additions and 0 deletions

2
handlers/main.yml Normal file
View File

@ -0,0 +1,2 @@
- name: reconfigure initramfs
command: dpkg-reconfigure -f noninteractive initramfs-tools

View File

@ -2,3 +2,14 @@
apt:
state: present
name: "{{ packages }}"
- name: "Blacklist the floppy driver module"
kernel_blacklist:
name: "floppy"
state: "present"
notify: "reconfigure initramfs"
- name: "Unload the floppy driver module"
modprobe:
name: "floppy"
state: "absent"