Using environment variables for provider info no longer works, getting "unable to convert to str: 'None'" #2440
Labels
awaiting-user-action
issue awaiting user's response and/or requested action
COMPONENT NAME
All F5 modules tried.
Examples:
Environment
ANSIBLE VERSION
BIGIP VERSION
CONFIGURATION
Running from venv
ANSIBLE_PYTHON_INTERPRETER=$(which python) ansible-playbook test.yml
OS / ENVIRONMENT
macOS 15.0.1 (Apple Silicon)
virtualenv with python 3.10.15
SUMMARY
When I try to use the environment variables (see environment above) for the provider info instead of specifying the provider yaml, I get errors like
It seems like the environment variables no longer work. This is inconvenient because now I have to specify the provider config for every single task.
I was able to get the environment variables to work using older code, but I can't find the right combination of Ansible/f5networks.f5_modules again easily.
STEPS TO REPRODUCE
Run with
ANSIBLE_PYTHON_INTERPRETER=$(which python) ansible-playbook test.yml
EXPECTED RESULTS
Ansible to run using the environment variables.
ACTUAL RESULTS
Fails with message
The text was updated successfully, but these errors were encountered: