AWX front end

Hello ,
i’m working on a porject using AWX and i would like to acess the source code of the page so i can add few buttons , im still new in this domain so any help would be very much apreciated :slight_smile:

Hello Ahmed,

I am not sure what exactly your requirement is but if you wish to access the AWX source code then you may very well access it on GitHub. Following is the link: https://github.com/ansible/awx

The source code to AWX GUI is present under /awx/ui .To perform UI development you may refer to the README present in https://github.com/ansible/awx/tree/devel/awx/ui/

If you have any specific query regarding the same, please do let me know.

Thanks
Soniya

Hello Mrs panswar ,
my requirment is to add another few blocks that we find in the dashboard that have hosts and failed hosts , i don’t know how to add that in the index.htm since there is not any i belive

Hello Ahmed

You would need to edit the createCounts(data) function in “dashboard-counts.directive.js” file to add a new block. The file is present at following location in the AWX source code: https://github.com/ansible/awx/blob/devel/awx/ui/client/src/home/dashboard/counts/dashboard-counts.directive.js

Thanks
Soniya

Thank you very very much !!
btw if i download the zip from the github and i changed that code how can i open awx in that case ?

Hello Ahmed,

After performing the required code changes, you need to reinstall AWX using the usual steps.
use below command to install the awx

cd awx/installer/
ansible-playbook -i inventory install.yml

Thanks
Soniya

Hi Sonia,

Any options to enable debugging of the AWX code? Any past links or articles would help. Basically we are trying to debug the code step by step

Thanks,
Saro