community / community.general / 0.2.1 / module / modprobe Load or unload kernel modules Authors: David Stygstra (@stygstra), Julien Dauphant (@jdauphant), Matt Jeffery (@mattjeffery)community.general.modprobe (0.2.1) — module
Install with ansible-galaxy collection install community.general:==0.2.1
collections: - name: community.general version: 0.2.1
Load or unload kernel modules.
- name: Add the 802.1q module modprobe: name: 8021q state: present
- name: Add the dummy module modprobe: name: dummy state: present params: 'numdummies=2'
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.