Open VDI-Tech-Guy opened 1 month ago
Hi @VDI-Tech-Guy , I faced no issues when using ansible_httpapi_password
, the playbook(my own) ran fine without issues. About the variable ansible_httpapi_user
, I don't think it should be used because as per this page the variable for the username should be ansible_user
.
I did not find the mention of ansible_httpapi_user
in the documentation of f5networks.next
, but if you did please let me know, we'll rectify the docs.
Is there a reason to why httpapi_user is not used instead of ansible_user? I will double verify this as i think this might be an error on my end
It is because the httpapi
plugin does not look for httpapi_user
to find out the user name, for that purpose it looks for either ansible_user
or remote_user
, if either of those are provided then it's fine, but if none of those are provided and instead httpapi_user
is provided then it'll complain because the variables required are not provided.
COMPONENT NAME
HTTPAPI
Environment
ANSIBLE VERSION
BIGIP Next VERSION
SUMMARY
When trying to use BIG-IP Next with HTTPAPI it seems it requirees an inventory ansible_user and ansible_password for it to work correctly, the variables ansible_httpapi_username: "xxxxx" and ansible_httpapi_password: "xxxxxx" do not seem to work at all.
Documentation reflects that this should be possible but in testing doesnt seem like it is.
STEPS TO REPRODUCE
From Git Repo - https://github.com/f5devcentral/f5-bd-ansible-day0-automation
EXPECTED RESULTS
Either Inventory Username and Password provide authentication or within code could utilize ansible_httpapi_username and ansible_httpapi_password would allow authentication to BIG-IP Next/CM code.
ACTUAL RESULTS
If the INVENTORY has ansible_user and ansible_password this will suceede the code, however if there is no inventory ansible_user and ansible_password it will fail even when ansible_httpapi_username and password are defined.