Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to cloud management, in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com.
When installing a collection from a git repository using ansible-galaxy, if an invalid parameter is specified in a requirements.yml, it's silently ignored and ansible-galaxy proceeds with default values, which may not have been what the user wanted.
Issue Type
Bug Report
Component Name
ansible-galaxy
Ansible Version
ansible-galaxy [core 2.17.2]
python version = 3.12.3
Configuration
N/A
OS / Environment
Ubuntu
Steps to Reproduce
This example requirements.yml will successfully install a collection from git, but not using the correct tag because the user hypothetically confused version with tag but ansible-galaxy did not complain about it and proceeded to install from the main branch:
Summary
When installing a collection from a git repository using ansible-galaxy, if an invalid parameter is specified in a requirements.yml, it's silently ignored and ansible-galaxy proceeds with default values, which may not have been what the user wanted.
Issue Type
Bug Report
Component Name
ansible-galaxy
Ansible Version
Configuration
OS / Environment
Ubuntu
Steps to Reproduce
This example requirements.yml will successfully install a collection from git, but not using the correct tag because the user hypothetically confused
version
withtag
but ansible-galaxy did not complain about it and proceeded to install from the main branch:Expected Results
ansible-galaxy should complain that
tag
is not a valid parameter and refuse to install the collection (maybe check the file against a schema).Actual Results
Code of Conduct