Skip to content

feat(modprobe): add modprobe_persistent to enable persistent module…#1

Open
ttungbmt wants to merge 1 commit into
robertdebock:masterfrom
ttungbmt:master
Open

feat(modprobe): add modprobe_persistent to enable persistent module…#1
ttungbmt wants to merge 1 commit into
robertdebock:masterfrom
ttungbmt:master

Conversation

@ttungbmt

Copy link
Copy Markdown

Introduce modprobe_persistent to control boot-time (persistent) module loading.

  • Values: "disabled" (default), "present", "absent"
  • "present": create entries in /etc/modules-load.d so systemd-modules-load loads modules at boot.
  • "absent": remove previously created persistent entries (does not unload runtime modules).
  • "disabled": keep previous behavior (runtime modprobe only), ensuring backward compatibility.

Copilot AI review requested due to automatic review settings October 16, 2025 00:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces persistent module loading functionality to the modprobe role by adding a new modprobe_persistent variable that controls whether kernel modules are loaded at boot time through systemd-modules-load.

  • Added modprobe_persistent parameter to control boot-time module loading behavior
  • Added default configuration with "disabled" as the default value to maintain backward compatibility
  • Updated the modprobe task to use the new persistent parameter

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tasks/main.yml Added persistent parameter to the modprobe task
defaults/main.yml Added modprobe_persistent variable with default value and documentation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants