Goal of this article

AWX makes Ansible usable for teams: jobs can be started from a UI, permissions can be separated, credentials can be managed centrally and runs become traceable. AWX does not turn bad Ansible code into good automation.

This article explains the key AWX building blocks and shows how a clean repository becomes a repeatable job.

Why AWX comes after a clean repository

AWX runs playbooks from a repository. If inventory, variables, roles and secrets are unclear, AWX only becomes a graphical interface for chaos. Roles, requirements.yaml, ansible.cfg and acceptance runs should work first.

Core building blocks

  • Project: connects AWX to the Git repository.
  • Inventory: describes hosts and groups.
  • Credentials: store SSH keys, Vault passwords or API access.
  • Job Template: combines project, inventory, playbook, credentials and variables.
  • Survey: asks approved parameters before launch.
  • RBAC: defines who may view, launch or administer.

Step 1: Create the project from Git

  • Enter the Git URL.
  • Choose branch, tag or release branch deliberately.
  • Use Update Revision on Launch only when the source is controlled.
  • Keep requirements.yaml in the repository so collections install reproducibly.

Step 2: Do not maintain inventory twice

If inventory already lives in Git, AWX should sync it from there or deliberately use an AWX-managed inventory. Doing both in parallel quickly creates drift.

yaml
---
all:
children:
linux:
hosts:
node01.example.test:
node02.example.test:
maintenance_tuesday:
hosts:
node01.example.test:

Step 3: Separate credentials deliberately

A common mistake is one powerful credential for everything. Prefer separation by purpose: SSH access, become password, Vault password and external APIs. This makes review and rotation easier.

  • Machine credential for SSH.
  • Vault credential for encrypted variables.
  • Source control credential only when the repository requires it.
  • Cloud or API credentials only for roles that really need them.

Step 4: Build understandable job templates

Name: Apply Linux baseline
Description:
Applies the approved Linux baseline to the selected host group.
The job changes packages, base services and SSH drop-ins.
Before production use, run check mode and limit to one host.
Playbook: playbooks/linux-baseline.yaml
Inventory: linux-production
Credentials: ssh-linux-admin, vault-linux
Options: Privilege Escalation enabled

A job template is the UI for an operational action. Its name and description should explain what it does and when it may be used.

Step 5: Use surveys only for safe parameters

  • Good: choose a maintenance window.
  • Good: enable check mode.
  • Good: choose a predefined host group.
  • Risky: free-form extra vars for production jobs.
  • Risky: arbitrary limits without an RBAC concept.

Step 6: Start with check mode

Critical templates should have a separate check job or expose check mode as a survey option. The first productive run should also be limited to one host.

Result control / technical acceptance

The technical acceptance follows the same pattern as the grommunio and SUSE articles: PASS means the specific check was actively performed or clearly evidenced. PASS WITH CONDITIONS, SCOPE LIMIT and NOT TESTED remain visible so the article does not claim more than was actually verified.

Project

Check
Sync Git project and check revision
Expected result
AWX uses the expected repository state
Status
PASS

Inventory

Check
Check hosts and groups from AWX or Git
Expected result
Target systems are clearly assigned
Status
PASS

Credentials

Check
Separate SSH, Vault and SCM credentials
Expected result
Access is purpose-bound and rotatable
Status
PASS

Job template

Check
Check playbook, inventory, credentials and options
Expected result
Template describes a clear operational workflow
Status
PASS

Survey/RBAC

Check
Limit parameters and launch permissions
Expected result
Users can only set approved options
Status
PASS WITH CONDITIONS

Job run

Check
Run check mode or limited execution
Expected result
Execution is logged and traceable
Status
PASS WITH CONDITIONS

Production

Check
Launch broad production job
Expected result
Only with approval and maintenance window
Status
NOT TESTED IN THIS PASS

Practical takeaway

AWX is strong when it makes existing Ansible discipline visible and repeatable. It does not replace role quality, inventory design or release discipline. It makes those practices usable for teams.