Skip to content

fix: ansible hook resolves the repo's own collections and installs requirements once - #29

Merged
emersonknapp merged 2 commits into
mainfrom
emerson/ansible-collections-path
Nov 7, 2026
Merged

emersonknapp merged 2 commits into
mainfrom
emerson/ansible-collections-path

Conversation

@emersonknapp

Copy link
Copy Markdown
Member

Fix two polymath-ansible bugs and release 2.7.1.

  • Put ansible/collections/ back on the collections path ahead of the .polymath-ansible/ cache.
    Since 2.3.0, playbooks that use a collection the repo develops itself failed syntax-check with "not found", unless the playbook sat beside a collections/ directory.
  • Run the hook as a single process with require_serial.
    Under --all-files, several processes installed ansible/requirements.yml into the same cache at once, and ansible-galaxy failed with "Directory not empty".
  • Bump to 2.7.1 with a changelog entry.

A new test lints a nested playbook that uses a role from the repo's own collection, and fails without the fix.

…quirements once

Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
@emersonknapp
emersonknapp marked this pull request as ready for review November 7, 2026 03:32
@emersonknapp
emersonknapp merged commit 808e5ab into main Nov 7, 2026
4 checks passed
@emersonknapp
emersonknapp deleted the emerson/ansible-collections-path branch November 7, 2026 03:32
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.

1 participant