netscaler / ansible-collection-netscaleradc

Custom Ansible modules for NetScaler ADC and NetScaler ADM. Part of NetScaler Automation Toolkit | https://github.com/netscaler/automation-toolkit
https://netscaler.github.io/ansible-collection-netscaleradc/
MIT License
112 stars 57 forks source link

[Bug]: `requires_ansible` in `meta/runtime.yml` is not matching with `ansible-core` in `requirements.txt` #431

Closed adworjan closed 5 months ago

adworjan commented 5 months ago

Summary

In the requirements.txt at the root of the repo, Ansible-core is pinned to version 2.15.9

ansible-core==2.15.9

Since ansible-builder uses the requirements.txt from the repository, this overwrites the ansible-core version regardless of what version the user wants. Recommend matching the meta/runtime.yml

ansible-core>=2.14.0 if that is the minimum supported version

Issue Type

Bug Report

Component Name

requirements.txt which impacts ansible-core when using ansible-builder

Python Version

Python 3.11.5

Ansible Version

2.16.6

Ansible Configuration

No response

netscaler.adc Collection Version

Collection    Version
------------- -------
netscaler.adc 2.6.1  

Target NetScaler Version

No response

Equivalent NetScaler CLI Command

No response

Steps to Reproduce

ansible-builder build -t newimage:latest

Use a non 2.15.9 execution environment.

In requirements.yml just have netscalar.adc

The final image will have ansible-core 2.15.9 because of the requirements.txt

Expected Results

I would expect to maintain the current version of ansible-core installed in my execution environment, not an exact version forced by the netscalar.adc collection when building EE

Actual Results

Additional Notes

No response