AWX in Action
AWX in Action
Ansible Orchestration at Scale
About the Book
In this guide, you will embark on a comprehensive journey through AWX, the powerful web-based interface for Ansible. By the end of this guide, you will have gained a thorough understanding of how to leverage AWX to enhance and scale your automation workflows.
Here's a preview of what you'll learn:
Installation and Configuration
You'll start with the essentials of setting up AWX in your environment. We will explore various installation methods, including using Docker and deploying AWX to a Kubernetes cluster. Documentation regarding installation can be overwhelming, but we will simplify the process and guide you through the steps to get AWX up and running.
AWX Organizations, Users, and Teams
Understand how to organize your automation environment by setting up organizations, users, and teams in AWX. Learn how these elements fit together and how they can be used to manage permissions and streamline your automation processes.
Hosts and Inventories
Dive into managing hosts and inventories within AWX. You will learn how to create and manage static and dynamic inventories (e.g., AWS), group hosts, add credentials, and use constructed inventories for more advanced scenarios.
Projects, Templates, and Jobs
Master the core components of AWX by exploring projects, job templates, and jobs. You'll learn how to create and manage projects, configure job templates, run ad hoc commands, and launch and schedule jobs. Additionally, you'll understand the lifecycle of an AWX job and how to automate complex workflows using workflow templates and surveys. You'll also learn about enabling content signature validation to ensure the integrity of your automation content. You will understand project synchronization, job notifications, and how to manage job artifacts. This part is crucial for understanding how to automate your automation, and that's why this guide focuses on it by providing practical examples and best practices.
AWX CLI
Discover the power of the AWX Command Line Interface (CLI). Learn what the AWX CLI is, why it is beneficial, and how to install and authenticate it. You'll also explore generating organization-scoped tokens, managing resources, and importing and exporting data.
Execution Environments and Instances
Gain insights into execution environments and instances. Learn about creating custom execution environments using Ansible Builder and Ansible Runner, adding and building execution environments, and managing execution and hop instances. You will also delve into instance groups, clustering, container groups, and capacity adjustment to optimize your automation infrastructure. This guide covers this part as it is crucial for scaling your automation and ensuring high availability. It not only provides practical examples but also shares how AWX internally works to help you understand the concepts better.
AWX Settings
Explore the various settings in AWX, including authentication, job settings, and logging. Understand how and where to configure settings, manage cache, debug, and logging settings, and other advanced settings to optimize your AWX environment.
AWX Monitoring and Status Views
Understand how to monitor your AWX setup and view status updates. You will learn about different status views like the dashboard, jobs, schedules, and activity streams. Additionally, you will explore management jobs, notifications, logging, and metrics to keep track of your automation processes. If you plan to monitor your automation using Prometheus and Grafana, this guide gives you a head start.
Real World Example
Finally, put your knowledge into practice with a real-world example. Learn how to use custom execution environments and external roles, create workflows, schedule and send notifications, launch jobs using the AWX CLI, AWX API, and from your CI pipelines. This part goes back to the most important part of this guide, which is to provide you with a practical example that you can use as a starting reference for your future automation tasks.
By the end of this guide, you will be equipped with the necessary knowledge and skills to succeed in your AWX adoption journey as an individual or as part of a team.
Team Discounts
Get a team discount on this book!
Table of Contents
- Preface
- Who This Book Is For
- What You Will Learn
- Join the Community
- About the Author
- The Companion Kit
- Your Feedback Matters
- AWX: History, Architecture, and Ecosystem
- Understanding the History of Ansible and AWX
- Ansible Core vs. AWX
- Community Ansible & AWX vs. Red Hat Ansible Automation Platform
- Security and Compliance
- Certified Content and Ecosystem
- Lifecycle Support
- Legal Protections
- Analytics and Insights
- Upgrades and Migrations
- Training and Consulting
- Cloud Deployment Options
- Event-Driven Automation
- Private Automation Hub
- Generative AI Integration
- Which One Should You Choose?
- AWX Architecture
- Execution Environments
- Web Interface and API
- Task Dispatching and Event Handling
- Installation and Configuration
- Requirements for This Guide
- The Different Ways to Install Ansible AWX
- Using Docker and Docker Compose
- Deploying AWX to K3s
- AWX Organizations, Users, Teams and How Everything Fits Together in AWX
- Organizations
- Users
- Teams
- How Everything Fits Together
- Hosts and Inventories
- Introduction
- Creating an Inventory of Hosts in AWX
- Adding Credentials
- Constructed Inventories
- Dynamic Inventories
- Execution Environments, Execution Instances and Hop Instances
- Execution Environments
- Ansible Builder
- Ansible Runner
- Adding Execution Environments
- Building Execution Environments
- Execution and Hop Instances
- Execution Instances
- Hop Instances
- Hybrid Nodes
- Control Nodes
- Instance Groups and Clustering
- Instance Capacity Adjustment
- Container Groups
- Topology View
- Projects, Templates, and Jobs
- Running Adhoc Commands
- AWX Projects
- Creating a Manual Project
- Creating a Git Project
- Enabling Content Signature Validation
- Job Templates
- Creating a Job Template
- Launching a Job
- Scheduling a Job
- Workflow Templates
- Adding Approval Nodes
- Surveys
- Key Objects and Their Relationships in Task Automation
- AWX Job Lifecycle
- AWX CLI
- What is the AWX CLI?
- Why Use the AWX CLI?
- Installing the AWX CLI
- Authenticating AWX CLI
- Using the CLI
- Using the API
- Using the AWX Web Interface
- AWX Applications and Tokens
- Authorization Grant Type
- Authorization Code
- Resource Owner Password-Based Grant Type
- Redirect URIs
- Client Type
- Confidential
- Public
- Authorization Grant Type
- Generating Organization-Scoped Tokens
- Understanding How to Use the AWX CLI
- Output Formats
- Importing and Exporting Data
- Managing Resources
- A Real-World Example
- Custom Execution Environments and External Roles
- Workflows
- Schedules and Notifications
- Launching a Job Using AWX CLI
- Launching a Job from Your CI Pipelines
- AWX Settings
- Authentication
- Jobs Settings
- Miscellaneous System settings
- Miscellaneous Authentication settings
- Logging settings
- User Interface settings
- Troubleshooting settings
- AWX Monitoring and Status Views
- AWX Status Views
- Dashboard
- Jobs
- Schedules
- Activity Streams
- The Workflow Approval View
- Management Jobs
- Notifications
- Logging
- Metrics
- AWX Status Views
- Afterword
- What’s Next?
- Your Feedback Matters
- Preface
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $14 millionwriting, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them