Skip to content

nchekwa/awx-logo-change

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

awx-logo-change

AWX Logo Change Procedure

LOGO

How to find image files:

docker run -it ansible/awx:16.0.0 bash
docker> find /var -name logo-login.svg

File Location inside container:
-> Main Login Page logo [158x93]:
      /var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/ui_next/build/static/media/logo-login.svg
-> After login / top menu logo [158x93]:
      /var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/ui_next/build/static/media/logo-header.svg

How to prepere logos for replacement:

mkdir /root/.awx/awxcompose/logo
wget https://raw.githubusercontent.com/azdolinski/awx-logo-change/main/img/ansiblelogo.png -O /root/.awx/awxcompose/logo/ansiblelogo.png
wget https://raw.githubusercontent.com/azdolinski/awx-logo-change/main/img/dot.png -O /root/.awx/awxcompose/logo/dot.png

Edit:

/root/.awx/awxcompose/docker-compose.yml

Add volumes to awx_web:

      - "/root/.awx/awxcompose/logo/ansiblelogo.png:/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/ui_next/build/static/media/logo-header.svg:ro"
      - "/root/.awx/awxcompose/logo/dot.png:/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/ui_next/build/static/media/logo-login.svg:ro"

LOGO

Restart awx components

cd /root/.awx/awxcompose/
docker-compose down
docker-compose up -d --build

Alternative logo2 file:

wget https://raw.githubusercontent.com/azdolinski/awx-logo-change/main/img/ansiblelogo2.png -O /root/.awx/awxcompose/logo/ansiblelogo2.png

LOGO2