fixes #16, blacklist modules
This commit is contained in:
@@ -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