Add and use own rmmod module instead of rmmod command.
This is a workaround for the modprobe module which fails to unload modules using modprobe -r MODULE. Using a dedicated module instead of a plain (shell) command allows to fail only on important errors.
This commit is contained in:
@@ -56,13 +56,22 @@
|
||||
|
||||
# unloading the drivers using the modprobe module does not work for some strange reason...
|
||||
- name: unload kms drivers
|
||||
command: rmmod '{{ item }}'
|
||||
rmmod:
|
||||
name: '{{ item }}'
|
||||
loop:
|
||||
- nouveau
|
||||
- ttm
|
||||
- drm_kms_helper
|
||||
- drm
|
||||
ignore_errors: yes
|
||||
|
||||
#- name: unload kms drivers
|
||||
# command: rmmod '{{ item }}'
|
||||
# loop:
|
||||
# - nouveau
|
||||
# - ttm
|
||||
# - drm_kms_helper
|
||||
# - drm
|
||||
# ignore_errors: yes
|
||||
|
||||
- name: load nvidia driver
|
||||
modprobe:
|
||||
|
Reference in New Issue
Block a user