modprobe

Collection: community.general

Full Name: parallax.community.general.modprobe

Aliases: community.general.modprobe, modprobe

Synopsis

Load and unload kernel modules

Parameters

NameTypeRequiredDefaultDescription
namestringyesName of the kernel module
statestringpresentWhether the module should be present (loaded) or absent (unloaded)
paramsstringModule parameters
persistentstringdisabledWhether 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