Open kebl-reflact opened 2 years ago
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
cc @ddelnano @shinuza click here for bot help
Since I think it's a valid error, I would propose a new environment variable naming structure for this module by removing the "ANSIBLE" part of it and starting with "XO" instead.
We generally require all Ansible specific environment variables to start with ANSIBLE_
. Possible exceptions so far have only been backwards compatibility and if that environment variable is also used by the product / tool / CLI program itself (in the same form), if applicable.
I have the same problem, i cant inject the credentials from awx as its not allowd to use environemnt varialbles that starts with ANSIBLE. This works on other inventory scripts that do not follow that practice.
A discussion about this is happening here: https://forum.ansible.com/t/environment-variables-prefix-with-ansible-and-awx/5737
Summary
When unsing the Inventory Plugin xenorchestra with AWX, I am unable to inject the environment Variabels. AWX seems to have an issue with environment Variables in credentials starting with ANSIBLE since these could affect Ansible itself.
Since I think it's a valid error, I would propose a new environment variable naming structure for this module by removing the "ANSIBLE" part of it and starting with "XO" instead. This would be more in line with other inventory plugins in this collection, by simultaniously shorten and make the vars more complicit
Issue Type
Bug Report
Component Name
xen_orchestra https://docs.ansible.com/ansible/latest/collections/community/general/xen_orchestra_inventory.html
Ansible Version
ansible 5.6.0
Community.general Version
community.general 4.7.0
Configuration
No response
OS / Environment
AWX 20.1.0
Steps to Reproduce
https://awx.example.com/#/credential_types/ Input configuration
Injector configuration
Expected Results
No error because of the variable name.
Actual Results
Code of Conduct