community.general.modprobe (0.1.4) — module

Load or unload kernel modules

Authors: David Stygstra (@stygstra), Julien Dauphant (@jdauphant), Matt Jeffery (@mattjeffery)

Install collection

Install with ansible-galaxy collection install community.general:==0.1.4


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.4

Description

Load or unload kernel modules.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add the 802.1q module
  modprobe:
    name: 8021q
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add the dummy module
  modprobe:
    name: dummy
    state: present
    params: 'numdummies=2'

Inputs

    
name:
    description:
    - Name of kernel module to manage.
    required: true

state:
    choices:
    - absent
    - present
    default: present
    description:
    - Whether the module should be present or absent.

params:
    default: ''
    description:
    - Modules parameters.