Address ansible-galaxy fetching issues.

Intermittent issues reaching Ansible's galaxy for molecule
dependencies. This can be worked around by creating
tests/requirements.yml, which is parsed by default with 
ansible-compat, and it does proceed with installation first.
If all dependencies are already present, molecule won't attempt
reaching galaxy. We see a lot of failures recently on CentOS 10
Stream.

Change-Id: I9abc7de610b072602b2b12549f4db07dd9a476dd
Signed-off-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>
This commit is contained in:
Dmitriy Rabotyagov committed 2026-09-24 09:36:00 +00:00
1 parent b0569beb2c
commit 3bf13e214d
3 files changed
+18 -4

No files matched your search

+2 -4
View File
@@ -1,9 +1,7 @@
---
dependency:
name: galaxy
options:
requirements-file: requirements.yml
force: true
enabled: false
driver:
name: docker
@@ -27,7 +25,7 @@ provisioner:
defaults:
inject_facts_as_vars: false
options:
diff: True
diff: true
scenario:
name: default
+5
View File
@@ -1,2 +1,7 @@
collections:
- name: community.library_inventory_filtering_v1
source: https://github.com/ansible-collections/community.library_inventory_filtering
type: git
- name: community.general
source: https://github.com/ansible-collections/community.general
type: git
+11
View File
@@ -0,0 +1,11 @@
---
collections:
- name: community.library_inventory_filtering_v1
source: https://github.com/ansible-collections/community.library_inventory_filtering
type: git
- name: community.docker
source: https://github.com/ansible-collections/community.docker
type: git
- name: ansible.posix
source: https://github.com/ansible-collections/ansible.posix
type: git