AWX Operator Installation issue

Hi Team,

I am installing AWX first time on my MAC terminal (MACOS Monetary version 12.5). Here is the URL( https://github.com/ansible/awx-operator) from which I am following the required steps.

I am getting the correct output of each command (mentioned here). But while running for the command: minikube service awx-demo-service --url

I got the below error:

Exiting due to SVC_NOT_FOUND: Service ‘awx-demo-service’ was not found in ‘default’ namespace.

You may select another namespace by using ‘minikube service awx-demo-service -n ’. Or list out all the services using ‘minikube service list’

Here, Please find the terminal output attached. In the same, you can see the exact result of my commands

(attachments)

Terminal Saved Output (236 KB)

the operator is running the awx namespace

append your command with “-n awx”

or, you can run “kubectl config set-context --current --namespace=awx” to temporarily change your namespace so that you don’t have to append “-n awx” to each kubectl command

Hope that helps

AWX Team

Thankyou, this works. Now I am able to access the UI.
One more question though, can I run the playbook using available API. Could you please let me know if there is any API and how to run the same.

Thanks & Regards

Neha Singh

Hi Neha,

Yes, there is a browse-able API you can interact with via the browser, there are some general docs on that here:

There are some swagger docs that has descriptions of each API endpoint:

This endpoint is the one you want to be able to launch a job template (which will create a job to run the playbook specified in the job_template you launch):

You can also interact with the AWX API using curl or the awxkit cli tool:

You can install this by running the following at the root of your checkout of the awx repository.

pip install -e awxkit/

Thanks,
AWX Team