modprobe
Collection: community.general
Full Name: parallax.community.general.modprobe
Aliases: community.general.modprobe, modprobe
Synopsis
Load and unload kernel modules
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | yes | Name of the kernel module | |
| state | string | present | Whether the module should be present (loaded) or absent (unloaded) | |
| params | string | Module parameters | ||
| persistent | string | disabled | Whether to persist the module across reboots (enabled/disabled) |
Example
- name: Load the br_netfilter module and keep it loaded
modprobe:
name: br_netfilter
state: present
persistent: present