community.general.kernel_blacklist (8.5.0) — module

Blacklist kernel modules

Authors: Matthias Vogelgesang (@matze)

Install collection

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


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

Add or remove kernel modules from blacklist.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Blacklist the nouveau driver module
  community.general.kernel_blacklist:
    name: nouveau
    state: present

Inputs

    
name:
    description:
    - Name of kernel module to black- or whitelist.
    required: true
    type: str

state:
    choices:
    - absent
    - present
    default: present
    description:
    - Whether the module should be present in the blacklist or absent.
    type: str

blacklist_file:
    default: /etc/modprobe.d/blacklist-ansible.conf
    description:
    - If specified, use this blacklist file instead of C(/etc/modprobe.d/blacklist-ansible.conf).
    type: str