From 2efaa25c56503320fba6e8a120be161e38bf0c46 Mon Sep 17 00:00:00 2001 From: Dan Guido Date: Tue, 5 Aug 2025 15:58:11 -0700 Subject: [PATCH] Fix pyproject.toml version parsing to not require community.general collection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace community.general.toml lookup with regex_search on file lookup. This fixes "lookup plugin (community.general.toml) not found" error on macOS where the collection may not be available during early bootstrap. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.yml b/main.yml index 0f231f4d..78646d97 100644 --- a/main.yml +++ b/main.yml @@ -24,7 +24,7 @@ - name: Extract ansible version from pyproject.toml set_fact: - ansible_requirement: "{{ lookup('community.general.toml', 'pyproject.toml', 'project.dependencies') | select('match', '^ansible.*') | first }}" + ansible_requirement: "{{ lookup('file', 'pyproject.toml') | regex_search('ansible==[0-9]+\\.[0-9]+\\.[0-9]+') }}" - name: Parse ansible version requirement set_fact: