Skip to content

fix: Remove dependencies from vm_networking role#27

Open
sabre1041 wants to merge 3 commits into
mainfrom
remove-vm_networking-dependencies
Open

fix: Remove dependencies from vm_networking role#27
sabre1041 wants to merge 3 commits into
mainfrom
remove-vm_networking-dependencies

Conversation

@sabre1041

Copy link
Copy Markdown

What

Remove the hard dependency on vm_collect from the vm_networking role.

Why

The vm_networking role previously declared a dependency on infra.openshift_virtualization_ops.vm_collect, coupling the two roles together. Removing this dependency allows vm_networking to be used independently without automatically
pulling in vm_collect, giving consumers more flexibility in how they compose roles.

Changes

  • Replaced the vm_collect role dependency in roles/vm_networking/meta/main.yml with an empty dependencies list (dependencies: [])

Signed-off-by: Andrew Block <andy.block@gmail.com>
@sabre1041 sabre1041 force-pushed the remove-vm_networking-dependencies branch from 0b99a7d to 16fbf61 Compare July 8, 2026 00:46

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

Removes the Ansible role meta dependency from vm_networking to decouple it from automatic dependency execution/installation behavior.

Changes:

  • Removed infra.openshift_virtualization_ops.vm_collect from roles/vm_networking/meta/main.yml dependencies.
  • Replaced the prior dependency list with an explicit empty list (dependencies: []).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- networking
dependencies:
- role: infra.openshift_virtualization_ops.vm_collect
dependencies: []
@sabre1041 sabre1041 changed the title Remove dependencies from vm_networking role fix: Remove dependencies from vm_networking role Jul 8, 2026
Guard vm_collect include_role with a condition so callers can pass
pre-populated vm_networking_vms and use the role without vm_collect.
Add vm_networking_vms to defaults for discoverability.
Update Mermaid diagram, task table, and defaults table to reflect
the conditional vm_collect inclusion and new vm_networking_vms default.
@sabre1041

Copy link
Copy Markdown
Author

@stevefulme1 Why were commits added to this PR?

@sabre1041

Copy link
Copy Markdown
Author

@stevefulme1 can we fix up this PR?

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.

3 participants