# Position AWX for repeatable execution, credentials and job templates

Source: https://forgeone.solutions/en/tech/awx-ansible-jobs-credentials-job-templates
Language: en
Published: 2026-10-20
Updated: 2026-11-22

How AWX projects, inventories, credentials, job templates, surveys and RBAC fit together cleanly.

## 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

```text
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.

| Area | Check | Expected result | Status |
| --- | --- | --- | --- |
| Project | Sync Git project and check revision | AWX uses the expected repository state | PASS |
| Inventory | Check hosts and groups from AWX or Git | Target systems are clearly assigned | PASS |
| Credentials | Separate SSH, Vault and SCM credentials | Access is purpose-bound and rotatable | PASS |
| Job template | Check playbook, inventory, credentials and options | Template describes a clear operational workflow | PASS |
| Survey/RBAC | Limit parameters and launch permissions | Users can only set approved options | PASS WITH CONDITIONS |
| Job run | Run check mode or limited execution | Execution is logged and traceable | PASS WITH CONDITIONS |
| Production | Launch broad production job | Only with approval and maintenance window | 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.

## Hero image

[![Ansible logo.](https://forgeone.solutions/media/Ansible_Logo.webp)](https://forgeone.solutions/media/Ansible_Logo.webp)

## Author

Mathias Rumbold

## Category

- [Ansible & Automation](https://forgeone.solutions/en/tech/awx-ansible-jobs-credentials-job-templates?category=ansible-automation)
- [Enterprise Linux](https://forgeone.solutions/en/tech/awx-ansible-jobs-credentials-job-templates?category=enterprise-linux)

## Tags

- [Ansible](https://forgeone.solutions/en/tech/awx-ansible-jobs-credentials-job-templates?tags=ansible)
- [Ansible Roles](https://forgeone.solutions/en/tech/awx-ansible-jobs-credentials-job-templates?tags=ansible-roles)
- [Automation](https://forgeone.solutions/en/tech/awx-ansible-jobs-credentials-job-templates?tags=automation)
- [Linux](https://forgeone.solutions/en/tech/awx-ansible-jobs-credentials-job-templates?tags=linux)
- [Linux Management](https://forgeone.solutions/en/tech/awx-ansible-jobs-credentials-job-templates?tags=linux-management)
- [Enterprise Linux](https://forgeone.solutions/en/tech/awx-ansible-jobs-credentials-job-templates?tags=enterprise-linux)
- [AWX](https://forgeone.solutions/en/tech/awx-ansible-jobs-credentials-job-templates?tags=awx)

## Ansible automation step by step

This series deliberately stays generic: Ansible fundamentals, repository structure, roles, Vault, Linux baselines, updates, quality checks, CI and AWX. Domain topics such as IdM, FreeIPA, Proxmox or SUSE Multi-Linux Manager are covered in their own specialist series.

1. [Install Ansible and create your first playbooks](https://forgeone.solutions/en/tech/install-ansible-and-create-your-first-playbooks)
2. [Ansible inventories, roles and Vault in practice](https://forgeone.solutions/en/tech/ansible-inventories-roles-vault-manage-linux-systems-reproducibly)
3. [Roll out a Linux baseline with Ansible](https://forgeone.solutions/en/tech/ansible-linux-baseline-packages-services-ssh-acceptance)
4. [Orchestrate updates, reboots and maintenance windows with Ansible](https://forgeone.solutions/en/tech/ansible-orchestrate-updates-reboots-maintenance-windows)
5. [Test, lint and validate Ansible roles in CI](https://forgeone.solutions/en/tech/ansible-test-lint-validate-roles-ci)
6. [Version, release and change Ansible repositories traceably](https://forgeone.solutions/en/tech/ansible-version-release-change-repositories-traceably)
7. [Position AWX for repeatable execution, credentials and job templates (current part)](https://forgeone.solutions/en/tech/awx-ansible-jobs-credentials-job-templates)
