Skip to content

Add sync_highest_versions parameter to ansible_remote module - #263

Draft
HarshRajSinghania wants to merge 2 commits into
pulp:developfrom
HarshRajSinghania:add-sync-highest-versions
Draft

HarshRajSinghania wants to merge 2 commits into
pulp:developfrom
HarshRajSinghania:add-sync-highest-versions

Conversation

@HarshRajSinghania

Copy link
Copy Markdown

Summary

Adds the sync_highest_versions parameter to the ansible_remote module so it can be used with collection remotes.

Motivation

Issue #261: Support for sync_highest_versions was added to the Ansible plugin (pulp_ansible >= 0.30.0) but was missing from the pulp.squeezer.ansible_remote module.

Implementation

  • Documented the new integer parameter (optional, collection remotes only).
  • Added it to the argument_spec.
  • Included it in the role-remote exclusion check and in the desired_attributes passed to the context.

Testing

  • Verified the module file parses and the parameter appears in the argument specification.
  • Existing test playbook structure remains compatible because the parameter is optional.

Fixes #261

Fixes pulp#261 by exposing the sync_highest_versions field from pulp_ansible >= 0.30.0 CollectionRemote.
Fixes pulp#261 by exposing the sync_highest_versions field from pulp_ansible >= 0.30.0 CollectionRemote.
@mdellweg
mdellweg marked this pull request as draft October 14, 2026 12:21
@mdellweg

Copy link
Copy Markdown
Member

Wow you spent all the effort on writing a hell of a PR description for a one line change?

Good first time issues are not meant for coding agents.

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.

ansible_remote module missing "sync_highest_versions" parameter

2 participants