Skip to content

Support requiring explicit permission to reboot#50

Merged
MoteHue merged 5 commits into
mainfrom
support-explicit-reboots
Jun 4, 2026
Merged

Support requiring explicit permission to reboot#50
MoteHue merged 5 commits into
mainfrom
support-explicit-reboots

Conversation

@MoteHue
Copy link
Copy Markdown
Contributor

@MoteHue MoteHue commented Jun 3, 2026

Adds equivalent variables to vgpu_do_reboot to the other roles, and adds a task to fail if the user has not explicitly allowed the reboot.

All reboots default to true to avoid breaking existing behaviour.

Adds equivalent variables to vgpu_do_reboot to the other roles, and adds
a task to fail if the user has not explicitly allowed the reboot.

All reboots default to true to avoid breaking existing behaviour.
@MoteHue MoteHue requested a review from a team as a code owner June 3, 2026 15:43
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces reboot safety checks across the grubcmdline, sriov, and vgpu Ansible roles to abort execution if a required reboot is disabled via configuration variables. However, the current implementation in roles/sriov/tasks/config.yml and roles/vgpu/tasks/install.yml aborts unconditionally when rebooting is disabled, which breaks Ansible's idempotency on already-configured systems. It is recommended to first check if the configuration files or driver installations are already complete before failing the playbook.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread roles/sriov/tasks/config.yml
Comment thread roles/vgpu/tasks/install.yml
Comment thread roles/sriov/tasks/config.yml Outdated
Comment thread roles/sriov/tasks/mlxconfig.yml Outdated
Comment thread roles/vgpu/tasks/install.yml
Copy link
Copy Markdown
Member

@Alex-Welsh Alex-Welsh left a comment

Choose a reason for hiding this comment

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

Generally I think these should be documented in the role's readme, but the roles seem to be pretty bad at this to begin with e.g.
grubcmdline readme:

Role Variables
--------------

Please see `defaults/main.yml`

@MoteHue MoteHue requested a review from Alex-Welsh June 4, 2026 14:20
@Alex-Welsh
Copy link
Copy Markdown
Member

Do you also want to bump the version in this PR so we can make a new release? https://github.com/stackhpc/ansible-collection-linux/blob/main/galaxy.yml

@MoteHue MoteHue merged commit 929350f into main Jun 4, 2026
4 checks passed
@MoteHue MoteHue deleted the support-explicit-reboots branch June 4, 2026 15:13
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