ansible.builtin.kernel_blacklist (v2.9.27) — module

Blacklist kernel modules

| "added in version" 1.4 of ansible.builtin"

Authors: Matthias Vogelgesang (@matze)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

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
  kernel_blacklist:
    name: nouveau
    state: present

Inputs

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

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

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