• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

Roger Perkin

Network Automation Architect

  • Network Automation
    • Network Automation Courses
    • What is NetDevOps?
    • Workflow Orchestration
    • Ansible Automation Platform
    • Ansible Workshop
    • What is Network Automation?
    • Network Automation Tools
    • ContainerLab
    • Ansible Training
      • What is Ansible?
      • Ansible Tutorial for Beginners
      • Ansible Network Automation
      • Ansible Hosts File
    • Python Network Automation
      • Nornir
      • Python Network Automation Course
      • Python for Network Engineers
      • Python VENV / Virtual Environment Tutorial
      • Python Tutorial for Beginners
      • pyATS
    • Network Source of Truth
      • NetBox Training
      • Infrahub
    • NetDevops
    • DevOps Tutorial
      • Git Training
      • Terraform Training
      • Linux Training
      • Kubernetes Training
      • Devops Training Course
      • Azure Devops Training
    • Terraform
    • GIT
      • Git Commands
      • What is GitHub?
    • Docker Training
    • Confluence
    • Microsoft Azure
  • Cisco
    • ISE
    • SD WAN Training
    • Password Recovery
    • Software-Upgrade-Guides
    • BGP
    • Data Center
    • WIRELESS
  • CCIE
  • Blog
  • About
    • My Red Special Guitar
  • Contact

What is the difference between Ansible AWX workflow template and job template?

Home » AWX

AWX Workflow Template

An Ansible AWX Workflow Template allows you to chain multiple Job Templates (and even other Workflow Templates) together in a defined sequence or conditional structure. It is essentially a “workflow” or orchestration of multiple jobs, letting you create complex automation flows.

Key Features of Workflow Templates:

  • Multiple Job Templates: You can chain several Job Templates together, allowing for more complex automation.
  • Conditional Execution: Workflows can be set to conditionally run specific jobs based on the success/failure of prior jobs (using “Success/Failure” logic).
  • Parallel Execution: You can have multiple jobs run in parallel (asynchronously).
  • Logical Flow: Workflows provide a way to control the flow of execution between multiple jobs. For example, you can set up a series of jobs that depend on each other’s outcome (e.g., Job A must succeed before Job B runs).
  • Visual Design: The workflow is usually displayed as a flowchart in the AWX UI, which helps visualize the execution path.
  • Triggering Jobs: A Workflow Template can be triggered manually or automatically (via an API, CLI, or other workflows).

When to use Workflow Template:

Automating Larger Processes: If your automation pipeline involves many interconnected jobs that need to run sequentially or in parallel.

Complex Tasks: If you have multiple independent or dependent tasks that should be executed in a specific order.

Task Orchestration: When you need to coordinate multiple steps across different machines, roles, or playbooks.

AWX Job Template

A Job Template in AWX is a single playbook run configuration. It’s the simplest form of automation in AWX and defines a specific playbook to be executed on a set of hosts, with parameters (like extra_vars), inventory, and other settings like credentials.

Key Features of Job Templates:

  • Single Playbook Execution: Executes one playbook on a set of hosts.
  • Target Hosts: Defined in the Inventory.
  • Variables: Can define variables in extra_vars or prompt the user for input at launch.
  • Credentials: Credentials are used to authenticate against the managed nodes (e.g., SSH or API credentials).
  • Execution Environment: Defines the Ansible environment, including the playbook’s Python version, libraries, etc.
  • Launchable by API/CLI: Can be launched manually through the AWX UI, CLI, or API.

When to use Job Template:

  • Simple tasks: For when you need to run a single playbook on one or more hosts with a specific set of variables.
  • One-time configurations: Suitable for automating individual tasks, such as configuring devices, updating software, or deploying apps.

Example Scenario

  1. Job Template Example:
    • A Job Template could run a playbook to configure a Cisco router with specific settings, such as IP addresses, BGP configurations, etc.
  2. Workflow Template Example:
    • A Workflow Template could combine the router configuration playbook (Job A) with another playbook that installs monitoring software on the router (Job B), then a third job that sends an alert (Job C) if either of the first two jobs fails.
    • It could run Jobs A and B in parallel, but only run Job C if Job A or Job B fails.

When to use each?

  • Use Job Templates when you have a single task or playbook that you want to run.
  • Use Workflow Templates when your task requires multiple jobs that may need to be executed in a specific order or parallel, with conditions for success/failure.
FeatureJob TemplateWorkflow Template
ExecutionRuns a single playbook on target hostsChains multiple job templates together
Flow ControlNo flow control; runs as a standalone jobSupports conditions, parallel execution, and sequence
Job DependencyNo dependency between jobsCan define dependencies between jobs (Success/Failure logic)
UsageFor simple, standalone tasksFor complex automation involving multiple steps
UI RepresentationSingle job executionVisual flowchart of job executions
Launch MechanismManually or through APIManually or through API, triggered by other workflows
Category: AWX
ansible course for network engineers
Get Access to my Ansible Course NOW
Previous Post:How Businesses Can Future-Proof Their IT Infrastructure for Growth
Next Post:Python Package Manger

Reader Interactions

Leave a Reply Cancel reply

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

Sidebar

Hi I'm Roger Perkin,
Based in the UK working as a Network Automation Architect, CCIE #50038
About Roger | Twitter | Linkedin

python course for network engineers

Topics

Network Automation
Ansible
Python for Network Automation
CCIE
Cisco ISE
F5 Certification
BGP
OSPF
Network Automation Conferences
auvik promo banner
Pluralsight Trial

Git for Network Engineers

Ansible vs Nornir

Start learning today with my Network Automation Courses

Master Ansible, Python, Git, Nornir, Jenkins and more..


Buy me a coffeeBuy me a coffee

ansible network automation course

Have you seen my YouTube Channel?

YouTube Subscribe

Let’s get started

Take a look at my premium courses on Ansible, Nornir & Git or buy them all with the Network Automation Bundle!

Network Automation Courses

Navigation

Python VENV Tutorial
Python for Network Engineers

Network Automation
Network Automation Courses
Network Discovery Tools
Network Automation Conferences
Ansible Training
What is Ansible?
Devops Tutorial
Network Source of Truth
DevOps Glossary
Network Monitoring Software

Contact

Contact

Get in touch with me here

[email protected]

  • Twitter
  • LinkedIn
  • YouTube
Buy me a coffeeBuy me a coffee

Copyright © 2025 · Roger Perkin · All Rights Reserved · Privacy Policy – Terms