# dcmcix/awx architecture

> Architecture diagram of the GitHub repository dcmcix/awx, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dcmcix/awx
- Repository: https://github.com/dcmcix/awx

## Overview

This repository provides Ansible playbooks to deploy AWX on a single-node k3s host, upgrade it, or remove it. The documented user workflow is to run the deployment playbook against an inventory target, then access the AWX GUI through its NodePort. The tree contains separate deployment, upgrade, and undeploy roles, but no source excerpts show how the playbooks invoke their roles or how role tasks connect. The graph therefore shows only README-documented relationships; the custom execution-environment images are documented as options, not as a verified runtime connection.

Main entry points: [`AWX_Deploy_On_Single_Node_K3S.yml`](https://github.com/dcmcix/awx/blob/main/AWX_Deploy_On_Single_Node_K3S.yml) (Deploy playbook), [`AWX_Upgrade_Single_Node_K3S.yml`](https://github.com/dcmcix/awx/blob/main/AWX_Upgrade_Single_Node_K3S.yml) (Upgrade playbook), [`AWX_UNDEPLOY_Single_Node_K3S.yml`](https://github.com/dcmcix/awx/blob/main/AWX_UNDEPLOY_Single_Node_K3S.yml) (Undeploy playbook)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_playbooks["Playbooks"]
  node_deploy_playbook["Deploy playbook"]
  node_upgrade_playbook["Upgrade playbook"]
  node_undeploy_playbook["Undeploy playbook"]
end

subgraph group_roles["Ansible roles"]
  node_deploy_role["Deployment role"]
  node_prerequisites["Prerequisites tasks<br/>[awx_prerequis.yml]"]
  node_awx_manifest["AWX manifest<br/>[awx-deploy.yml]"]
  node_pvc_manifest["Storage manifest<br/>[awx-pvc.yml]"]
  node_upgrade_role["Upgrade role"]
  node_upgrade_tasks["Upgrade tasks<br/>[main.yml]"]
  node_upgrade_handlers["Upgrade handlers<br/>[main.yml]"]
  node_undeploy_role["Undeployment role"]
  node_undeploy_tasks["Undeployment tasks<br/>[main.yml]"]
end

subgraph group_runtime["Deployed AWX"]
  node_awx["AWX on k3s"]
  node_ee_images["Custom EE images"]
end

node_operator(("Operator"))

node_operator -->|"runs deployment"| node_deploy_playbook
node_operator -->|"runs upgrade"| node_upgrade_playbook
node_operator -->|"runs removal"| node_undeploy_playbook
node_deploy_playbook -->|"deploys AWX"| node_awx
node_awx -->|"serves GUI"| node_operator

click node_deploy_playbook "https://github.com/dcmcix/awx/blob/main/AWX_Deploy_On_Single_Node_K3S.yml"
click node_upgrade_playbook "https://github.com/dcmcix/awx/blob/main/AWX_Upgrade_Single_Node_K3S.yml"
click node_undeploy_playbook "https://github.com/dcmcix/awx/blob/main/AWX_UNDEPLOY_Single_Node_K3S.yml"
click node_deploy_role "https://github.com/dcmcix/awx/tree/main/roles/awx_deploy_on_single_node_k3s"
click node_prerequisites "https://github.com/dcmcix/awx/blob/main/roles/awx_deploy_on_single_node_k3s/tasks/awx_prerequis.yml"
click node_awx_manifest "https://github.com/dcmcix/awx/blob/main/roles/awx_deploy_on_single_node_k3s/files/awx-deploy.yml"
click node_pvc_manifest "https://github.com/dcmcix/awx/blob/main/roles/awx_deploy_on_single_node_k3s/files/awx-pvc.yml"
click node_upgrade_role "https://github.com/dcmcix/awx/tree/main/roles/awx_upgrade_single_node_k3s"
click node_upgrade_tasks "https://github.com/dcmcix/awx/blob/main/roles/awx_upgrade_single_node_k3s/tasks/main.yml"
click node_upgrade_handlers "https://github.com/dcmcix/awx/blob/main/roles/awx_upgrade_single_node_k3s/handlers/main.yml"
click node_undeploy_role "https://github.com/dcmcix/awx/tree/main/roles/awx_undeploy_single_node_k3s"
click node_undeploy_tasks "https://github.com/dcmcix/awx/blob/main/roles/awx_undeploy_single_node_k3s/tasks/main.yml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_deploy_playbook,node_upgrade_playbook,node_undeploy_playbook toneBlue
class node_deploy_role,node_prerequisites,node_awx_manifest,node_pvc_manifest,node_upgrade_role,node_upgrade_tasks,node_upgrade_handlers,node_undeploy_role,node_undeploy_tasks toneAmber
class node_awx,node_ee_images toneMint
class node_operator toneIndigo
```

## Components

### Playbooks

- [Deploy playbook](https://github.com/dcmcix/awx/blob/main/AWX_Deploy_On_Single_Node_K3S.yml): `AWX_Deploy_On_Single_Node_K3S.yml`
- [Upgrade playbook](https://github.com/dcmcix/awx/blob/main/AWX_Upgrade_Single_Node_K3S.yml): `AWX_Upgrade_Single_Node_K3S.yml`
- [Undeploy playbook](https://github.com/dcmcix/awx/blob/main/AWX_UNDEPLOY_Single_Node_K3S.yml): `AWX_UNDEPLOY_Single_Node_K3S.yml`

### Ansible roles

- [Deployment role](https://github.com/dcmcix/awx/tree/main/roles/awx_deploy_on_single_node_k3s): `roles/awx_deploy_on_single_node_k3s`
- [Prerequisites tasks](https://github.com/dcmcix/awx/blob/main/roles/awx_deploy_on_single_node_k3s/tasks/awx_prerequis.yml): `roles/awx_deploy_on_single_node_k3s/tasks/awx_prerequis.yml`
- [AWX manifest](https://github.com/dcmcix/awx/blob/main/roles/awx_deploy_on_single_node_k3s/files/awx-deploy.yml): `roles/awx_deploy_on_single_node_k3s/files/awx-deploy.yml`
- [Storage manifest](https://github.com/dcmcix/awx/blob/main/roles/awx_deploy_on_single_node_k3s/files/awx-pvc.yml): `roles/awx_deploy_on_single_node_k3s/files/awx-pvc.yml`
- [Upgrade role](https://github.com/dcmcix/awx/tree/main/roles/awx_upgrade_single_node_k3s): `roles/awx_upgrade_single_node_k3s`
- [Upgrade tasks](https://github.com/dcmcix/awx/blob/main/roles/awx_upgrade_single_node_k3s/tasks/main.yml): `roles/awx_upgrade_single_node_k3s/tasks/main.yml`
- [Upgrade handlers](https://github.com/dcmcix/awx/blob/main/roles/awx_upgrade_single_node_k3s/handlers/main.yml): `roles/awx_upgrade_single_node_k3s/handlers/main.yml`
- [Undeployment role](https://github.com/dcmcix/awx/tree/main/roles/awx_undeploy_single_node_k3s): `roles/awx_undeploy_single_node_k3s`
- [Undeployment tasks](https://github.com/dcmcix/awx/blob/main/roles/awx_undeploy_single_node_k3s/tasks/main.yml): `roles/awx_undeploy_single_node_k3s/tasks/main.yml`

### Deployed AWX

- **AWX on k3s**
- **Custom EE images**

### Other components

- **Operator**

## Connections

- Operator → Deploy playbook: runs deployment (evidence: `README.md`)
- Operator → Upgrade playbook: runs upgrade (evidence: `README.md`)
- Operator → Undeploy playbook: runs removal (evidence: `README.md`)
- Deploy playbook → AWX on k3s: deploys AWX (evidence: `README.md`)
- AWX on k3s → Operator: serves GUI (evidence: `README.md`)
