How to install Ansible AWX on a closed network

1,534 views
Skip to first unread message

Guri Dolidze

unread,
Jul 22, 2022, 3:34:04 PM7/22/22
to AWX Project
Hello all,

Is there a way to install ansible awx without getting the packages directly from the internet,
say i download the whole ansible awx on my local computer then move it to the server in the closed network?

Mitch Wright

unread,
Jul 25, 2022, 9:33:01 AM7/25/22
to AWX Project
Do you mirror the docker and quay container images repos internally?  If so here are the adjustments that we had to make to point to our internal images.
Following the instructions in "https://github.com/ansible/awx-operator/README.md', you'll need to add the respective container images to the awx-demo.yml.

awx-demo.yml
---
kind: AWX
metadata:
  name: awx-demo
spec:
service_type: nodeport
  # default nodeport_port is 30080
  control_plane_ee_image: '{YOUR_INTERNAL}/ansible/awx-ee'
  image: '{YOUR_INTERNAL}/ansible/awx'
  image_version: '21.3.0'
  init_container_image: '{YOUR_INTERNAL}/centos/centos'
  init_container_image_version: 'stream8'
  nodeport_port: 30080
  postgres_image: {YOUR_INTERNAL}/library/postgres
  postgres_image_version: 12
  redis_image: '{YOUR_INTERNAL}/library/redis'
  redis_image_version: '7'
 
Then, following the directions in https://github.com/ansible/awx-operator/README.md; I ran the 'kustomize build . ' and pointed it to a local file.

kustomize build . > my-awx-demo.yml

In that local file(my-awx-demo.yml), we had to change 2 of the image to internal. 

On line 1010. 
image: {YOUR_INTERNAL}/kubebuilder/kube-rbac-proxy:v0.8.0

and on line 1030
image: {YOUR_INTERNAL}/ansible/awx-operator:0.25.0

Then follow the rest of the setup commands from the https://github.com/ansible/awx-operator/README.md 
kubectl apply -f my-awx-demo.yml

Hope this helps
Mitch

lgrul...@gmail.com

unread,
Apr 30, 2023, 2:39:23 PM4/30/23
to AWX Project
Hi  Mitch,
Your response has some good pointer, but if possible can you help us write a how-to on getting this done...I was a bit lost on the steps you have outlined, I am a newbie but wanting to learn this since I am also on a closed network.

AWX Project

unread,
May 3, 2023, 2:38:37 PM5/3/23
to AWX Project
there are other threads about deploying in air gapped environments, for example https://groups.google.com/g/awx-project/c/BEEtyljkTJc/m/gFak_u2wAgAJ

let us know which steps you tried, and which steps failed for you

AWX Team

vivek shete

unread,
May 17, 2023, 4:49:48 PM5/17/23
to AWX Project
Hi

can I have my init_container_image:'{YOUR_INTERNAL}/ansible/awx-ee' or it needs to be a centos. 

Also can you help me answer in my below thread for other questions. I believe plenty of them are answered in above thread but for others. TIA
https://groups.google.com/g/awx-project/c/xiuIHvIZwRM/m/htRROY43CgAJ 
Reply all
Reply to author
Forward
0 new messages