Trying to switch from command line ansible to AWX and ran into an issue authenticating to Aruba Central.For native ansible command line I'm just following the example provided at https://developer.arubanetworks.com/aruba-central/docs/ansible-getting-started.
The inventory file is defined as:
A test playbook does the following:
Executing the playbook works fine:
When switching into AWX, however, I got a HTTP 401 error instead.
The host central is defined with the exact same variables:
Launching the exact same playbook, this is what I get: HTTP Error 401: Unauthorized.
I tried a few tweaks including creating a custom credential type by passing ansible_httpapi_central_access_token as an environment variable, but still got the same result. I also made sure that my API token wasn't expired or anything when testing with AWX.
Is there anything else I am missing?
After running the AWX template with verbosity 4 and comparing it with command line ansible with -vvvv, it seems that this is triggered by AWX attempting to remove local temporary files while executing the playbook:
The test AWX implementation I have is a container deployed on Ubuntu microk8s, I'm still trying to nail down the root cause of this.
At Aruba, we believe that the most dynamic customer experiences happen at the Edge. Our mission is to deliver innovative solutions that harness data at the Edge to drive powerful business outcomes.
© Copyright 2021 Hewlett Packard Enterprise Development LPAll Rights Reserved.