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