summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/modprobe.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/modprobe.py b/system/modprobe.py
index 94c1a704..1bb1d3f7 100644
--- a/system/modprobe.py
+++ b/system/modprobe.py
@@ -114,7 +114,7 @@ def main():
args['changed'] = True
elif args['state'] == 'absent':
if present:
- rc, _, err = module.run_command([module.get_bin_path('rmmod', True), args['name']])
+ rc, _, err = module.run_command([module.get_bin_path('modprobe', True), '-r', args['name']])
if rc != 0:
module.fail_json(msg=err, **args)
args['changed'] = True