Compare commits
2 Commits
6b825464a3
...
478aa7f9c9
| Author | SHA1 | Date | |
|---|---|---|---|
| 478aa7f9c9 | |||
| f65f0ff2df |
3
ansible/roles/modules/files/ansible-blacklist.conf
Normal file
3
ansible/roles/modules/files/ansible-blacklist.conf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
blacklist axp20x-battery
|
||||||
|
blacklist bluetooth
|
||||||
|
blacklist snd_soc_hdmi_codec
|
||||||
@@ -8,4 +8,19 @@
|
|||||||
community.general.modprobe:
|
community.general.modprobe:
|
||||||
name: nf_conntrack
|
name: nf_conntrack
|
||||||
state: present
|
state: present
|
||||||
persistent: present
|
persistent: present
|
||||||
|
|
||||||
|
|
||||||
|
- name: blacklist modules
|
||||||
|
copy:
|
||||||
|
src: ansible-blacklist.conf
|
||||||
|
dest: /etc/modprobe.d/ansible-blacklist.conf
|
||||||
|
register: blacklist
|
||||||
|
|
||||||
|
- name: depmod and initramfs
|
||||||
|
block:
|
||||||
|
- name: depmod
|
||||||
|
command: depmod -ae
|
||||||
|
- name: initramfs
|
||||||
|
command: update-initramfs -u
|
||||||
|
when: blacklist.changed
|
||||||
Reference in New Issue
Block a user