Ansible AWX: How to change default logos on the Web

Upload logos

First step, upload the custom logos to Ansible AWX machine. There are two different logos, the login logo and the header logo.

Copy logos to awxcompose

Copy both logos to your compose dir :

# cp /tmp/custom-logo-login.svg  /root/.awx/awxcompose
# cp /tmp/custom-logo-header.svg  /root/.awx/awxcompose

Modify docker-compose.yml

Modify docker-compose.yml file and add the following information in the section « awx_web » :

# cd /root/.awx/awxcompose
# vi docker-compose.yml

#LOGO custom-logo.svg
      - "~/.awx/awxcompose/custom-logo-login.svg:/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/ui/static/assets/logo-login.svg"
      - "~/.awx/awxcompose/custom-logo-header.svg:/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/ui/static/assets/logo-header.svg"

Modify template docker-compose.yml.j2

Modify also the template docker-compose.yml.j2 file with same information :

# cd /opt/ansible-awx/awx/installer/roles/local_docker/templates
# vi docker-compose.yml.j2

#LOGO custom-logo.svg
      - "~/.awx/awxcompose/custom-logo-login.svg:/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/ui/static/assets/logo-login.svg"
      - "~/.awx/awxcompose/custom-logo-header.svg:/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/ui/static/assets/logo-header.svg"

Launch installation

Launch the installation to rebuild the containers with the updated information :

# cd /opt/ansible-awx/awx/installer
# ansible-playbook -i inventory install.yml
Compartir:

This article was written by RoberMB

💻OS, ☁️Cloud, 🛡️Cybersecurity, ✈️Traveling #Linux, #Ansible, #AWS, #VMware, #Docker 🏴‍☠️ CEH v10, CPHE 🏴‍☠️ ... Always learning, always enjoying.

One thought on “Ansible AWX: How to change default logos on the Web”

  1. not working still loading the older logo on login page.!!

Leave a Reply

Your email address will not be published. Required fields are marked *