Open jagibson opened 3 days ago
Also ran with ansible-core 2.17.6. Same result.
Hi @jagibson,
"{{ my.f5.here }}" is a nested variable so it's parameter here under f5 under my. https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_variables.html#referencing-nested-variables
With inventory hosts file you shared, you should use:
environment:
F5_SERVER: "{{ inventory_hostname }}"
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