The Ansible Workshop Hands-On Learning for Rapid Mastery

"The Ansible Workshop" offers a comprehensive journey through the world of Ansible, guiding readers from foundational concepts to advanced applications in automation. Readers delve into creating and managing inventories, an essential aspect of organizing systems for automation. As the jour...

Full description

Bibliographic Details
Main Author: El Amri, Aymen
Format: eBook
Language:English
Published: Birmingham Packt Publishing, Limited 2024
Subjects:
Online Access:
Collection: O'Reilly - Collection details see MPG.ReNa
Table of Contents:
  • Intro
  • Preface
  • What Are You Going To Learn?
  • Who Is This Guide For?
  • About The Author
  • The Companion Toolkit
  • Join the Community
  • Your Feedback Matters
  • Overview of Ansible
  • What is Ansible?
  • The Tale of Ansible
  • Declarative vs. Imperative Automation
  • Ansible Architecture
  • Inventory
  • Playbooks
  • Modules
  • Plugins
  • Roles
  • Ansible Vault
  • Ansible Engine
  • How Does Ansible Work?
  • Pros of Ansible
  • Cons of Ansible
  • Ansible vs Other Tools
  • Chef vs Ansible
  • Puppet vs Ansible
  • SaltStack vs Ansible
  • Introduction to Ansible
  • Prerequisites
  • Ansible Vault and Sensitive Data Management
  • What is Ansible Vault?
  • How to Use Ansible Vault
  • Using Password Files
  • Using Vault IDs
  • Ansible Blocks
  • What are Ansible Blocks?
  • How to Use Ansible Blocks
  • Error Handling with Ansible Blocks
  • Using "Rescue" and "Always" Together
  • Ansible Blocks with Asynchronous Tasks
  • Ansible Modules, Plugins, and Filters
  • What is an Ansible Module?
  • What is an Ansible Plugin?
  • Modules vs Plugins
  • Installing Ansible Modules and Plugins
  • Exploring the Lookup Plugins
  • Creating Ansible Modules
  • Documenting Your Module
  • Debugging Ansible
  • Enabling Debugging
  • Debugging Tasks
  • Identify The Task That Failed
  • List The Task Variables
  • Identify The Host Where The Task Has Failed
  • Print The Execution Result of The Task
  • List All Task Arguments
  • Getting a Single Task Argument
  • Using the Debugger to Fix the Error
  • Enabling Debugging for All Tasks
  • Choosing When to Debug
  • Low-Level Debugging
  • Dry Run: Testing Playbooks Without Executing Them
  • Callback Plugins
  • Printing Variables
  • Printing The Output Of A Command
  • Printing The Output Of A Task
  • Using Your IDE to Write Better Playbooks
  • Installing and Configuring Ansible
  • Ansible Inventory
  • Understanding the Ansible Inventory
  • Creating Advanced Ansible Inventories
  • Advanced Techniques To Target Specific Managed Nodes
  • Using the Default Inventory
  • Dynamic Inventories
  • Creating and Using Playbooks
  • Ad-hoc Commands vs Playbooks
  • Creating a Playbook
  • Playbook, Play, and Tasks
  • Creating Advanced Playbooks
  • Part 1
  • Creating Advanced Playbooks
  • Part 2
  • Ansible Facts
  • What are Ansible Facts and Why Do We Need Them?
  • Finding Ansible Facts
  • How To Use Ansible Facts
  • Advanced Usage of Ansible Facts
  • Using The AnsibleModule Utility Class
  • A Full Example
  • Imports And Metadata
  • Function run_module()
  • Function main()
  • Execution Check
  • Developing an Ansible Module That Uses Generative AI
  • What Is An Ansible Filter?
  • Using Ansible Filters
  • Creating Ansible Filters
  • Ansible Roles
  • Role Directory Structure
  • Using "Defaults": Default Variables
  • Using "Files": Static Files
  • Using "Handlers": Actions Triggered by Tasks
  • Using "Meta"
  • Using "Tasks": Main List of Tasks
  • Using "Templates": Template Files
  • Using "Tests": Testing the Role