playbook

55 Ansible tutorials tagged “playbook”. Working examples covering automation, configuration management, and DevOps workflows.

Ansible throttle — Limit Concurrent Task Execution Across Hosts

playbooks · 5

Control how many hosts run a task simultaneously with Ansible throttle. Prevent resource exhaustion during rolling updates, API calls, and database.

intermediate

Ansible Playbook — Write Your First Automation Script

playbooks · 6

Write Ansible playbooks from scratch. YAML syntax, plays, tasks, variables, handlers, and a complete multi-play example. Beginner guide with best.

beginner

Ansible run_once — Execute a Task Only Once Across All Hosts

playbooks · 6

Use Ansible run_once to execute a task on a single host in a play. Understand how it works with serial, strategy free, delegate_to, and when to use it.

intermediate

Speed Up Ansible Playbooks — 10 Performance Tips

playbooks · 7

Make Ansible playbooks faster with pipelining, mitogen, async tasks, fact caching, free strategy, and SSH multiplexing. Benchmarks and examples.

Advanced

Ansible Best Practices — Write Clean, Maintainable Playbooks

best-practices · 3

Essential Ansible best practices: directory structure, naming conventions, idempotency, vault secrets, roles, linting, and CI/CD integration. Proven.

Beginner

Ansible ignore_errors — Best Practices

playbooks · 8

Use ignore_errors, failed_when, and block/rescue in Ansible playbooks. Best practices to handle failures without masking real problems.

Beginner

Ansible Debugger — Interactive Debugging for Failed Tasks

playbooks · 4

How to use the Ansible debugger to inspect and fix failed tasks interactively. Enable with debugger: on_failed, use p, r, c, q commands to examine.

Beginner

Ansible for Windows — Complete Automation Guide

playbooks · 4

Automate Windows systems with Ansible. Complete guide covering WinRM setup, Windows modules, file management, user administration, software deployment,.

Beginner

Ansible Dry Run — Check & Diff Mode

playbooks · 4

Run Ansible playbooks in dry-run mode with --check and --diff. Preview changes before applying, test idempotency, and validate configurations safely.

Beginner

Using Ansible Tree Callback: Save Host Events to Files Easily

playbooks · 3

Discover how to use the Ansible Tree callback to save host events to JSON files. Enhance your logging and auditing with this powerful feature introduced.

Beginner

Understanding Ansible Builtin vs Legacy Collections: Key Differences

playbooks · 5

Explore the essential differences between Ansible's ansible.builtin and ansible.legacy collections. Understand how each affects your playbooks with.

Advanced

Ansible run_once — Execute a Task on Only One Host

playbooks · 3

How to use Ansible run_once to execute tasks on a single host in a multi-host play. Examples with delegation, serial, and common pitfalls.

Beginner

Ansible Vault — Encrypt Secrets in Playbooks (Complete Guide)

playbooks · 6

Encrypt passwords, API keys, and sensitive files with Ansible Vault. Complete guide covering encrypt_string, vault files, multiple passwords.

Advanced

Ansible: Fix 'Failed to Import botocore or boto3' for AWS

playbooks · 4

Learn how to troubleshoot and fix the "Failed to import the required Python library (botocore or boto3)" error in Ansible for AWS with a live Playbook.

Beginner

Ansible Error 205: Fix playbook-extension Lint Error

playbooks · 4

Fix ansible-lint Error 205 playbook-extension. Learn why playbook files should use .yml extension, not .yaml or other extensions, and how to configure.

Beginner

Ansible troubleshooting — Error 505: missing-import

playbooks · 6

Fix Ansible Lint Error 505 missing-import — causes, examples, and best practices for import_tasks, include_tasks, and roles.

Beginner

Ansible no-log-password — Lint Rule Fix

playbooks · 4

Fix ansible-lint no-log-password warnings. When to use no_log: true for passwords, tokens, and secrets in Ansible tasks. Examples and best practices.

Beginner

Ansible Lint Rule parser-error — Fix YAML Syntax Errors

playbooks · 5

Fix Ansible Lint parser-error by correcting YAML syntax — indentation, spacing, quoting, and structure. Complete guide with common patterns.

Beginner

Fix Ansible run_once — Common Pitfalls

playbooks · 5

Fix run_once issues in Ansible playbooks. Common mistakes with serial, delegation, variable scope, and how to properly run tasks on a single host.

Advanced

Fix Ansible VMware PyVmomi Error

playbooks · 3

Let’s troubleshoot together the Ansible fatal error “Failed to import the required Python library (PyVmomi)” to find the root cause, install the.

Beginner

Ansible troubleshooting — VMware Unknown error while connecting to vCenter or ESXi

playbooks · 3

Let’s troubleshoot together the Ansible fatal error “Unknown error while connecting to vCenter or ESXi API, [Errno -2] Name or service not known” to.

Beginner

Fix Ansible VMware Certificate Error

playbooks · 4

Learn how to resolve the "certificate verify failed" error in Ansible when connecting to VMware vCenter. Follow our step-by-step guide for a smooth fix.

Beginner

Ansible troubleshooting — 'not a valid attribute for a Play'

playbooks · 6

Fix the Ansible error 'not a valid attribute for a Play' — caused by YAML typos like 'task' instead of 'tasks'. Complete list of valid play attributes.

Beginner

Automate Redmine Installation on Ubuntu LTS 22.04 with Ansible

playbooks · 4

Learn how to automate the installation of Redmine on Ubuntu 22.04 LTS using Ansible, ensuring a consistent and efficient deployment process for your.

Advanced

Automating Dynamic Time Date Facts with Ansible

playbooks · 6

Learn how to work with dates, timestamps, and time formatting in Ansible playbooks using set_fact, now(), ansible_date_time, and strftime filters with.

Advanced

Automating Jenkins Installation with Ansible

playbooks · 4

Automate Jenkins installation effortlessly with Ansible. This playbook guides through installing Java, adding Jenkins repository, and configuring.

Beginner

Ansible Regex Filters — Search & Replace

playbooks · 7

Use ansible regex_search, regex_findall, and regex_replace filters to search, extract, and transform strings in playbooks. Real-world examples included.

Advanced

Automate Tasks with Ansible: Execute Actions at 10:55

playbooks · 3

Learn how to automate scheduled tasks in Ansible. This guide demonstrates executing a playbook at 10:55, including time calculations and waiting.

Beginner

Automating depmod with Ansible

playbooks · 3

Learn how to automate the depmod command using Ansible for streamlined kernel module management. Tested on real machines with clear, copy-paste examples.

Advanced

Ansible community.vmware Collection Setup

playbooks · 4

Configure Ansible for VMware vSphere with community.vmware collection. Install pyVmomi, set credentials, and manage VMs with complete playbook examples.

Beginner

Ansible Windows Hosts — Step-by-Step

playbooks · 7

Learn how to configure Windows hosts for Ansible using basic authentication and WinRM. Follow our step-by-step guide to set up and run your first playbook.

Beginner

Creating Ansible Collection Using ansible-creator and VS Code Ansible Extension

playbooks · 5

Create and scaffold Ansible Collections using ansible-creator and the VS Code Ansible Extension. Complete guide with CLI commands, directory structure.

Beginner

Creating Custom Ansible Plugins to Fetch API Data Easily

playbooks · 3

Learn how to create custom Ansible plugins to fetch data from APIs. Enhance your automation tasks with this detailed step-by-step guide.

Advanced

Decrypt Ansible Vault — Complete ansible-vault Guide

playbooks · 4

Decrypt Ansible Vault files with ansible-vault decrypt. Complete guide covering password files, vault IDs, inline encrypted variables, and CI/CD.

Beginner

Exploring Ansible Playbook Gather Facts for Displaying Network Information

playbooks · 4

Streamlining Network Information Retrieval with Ansible’s Declarative Playbooks using the setup Ansible module. With clear, copy-paste, step-by-step examples.

Advanced

Git Checkout a Specific Commit — ansible.builtin.git

playbooks · 3

How to checkout a specific commit of a Git repository using Ansible's ansible.builtin.git module. Tested on real machines with clear, copy-paste examples.

Beginner

How to Run Only One Task in Ansible Playbook? — Ansible tags statement

playbooks · 3

How to select single or multiple tasks, include, import, play, block, and role in an Ansible Playbook using tags parameter of ansible-playbook command.

Beginner

Install Ansible on Ubuntu 24.04 LTS — pip & APT Guide

playbooks · 5

Install Ansible on Ubuntu 24.04 Noble Numbat step by step. Covers pip, APT PPA, pipx methods with version pinning and virtual environments.

Advanced

How to install ansible-lint in macOS

playbooks · 3

How to install the ansible-lint command line utility and use it to improve our Ansible Playbooks in macOS Intel and Silicon.

Beginner

Learn Ansible book technical review by Luca Berton

playbooks · 4

Second Edition: Automate your cloud infrastructure, security configuration, and application deployment. Tested, copy-paste examples included.

Advanced

Advanced Ansible Techniques: Leveraging Jinja2 Filters for Smart Data Transformations

playbooks · 3

Unveiling the power of Ansible's Jinja2 filters for advanced data transformations: A step-by-step exploration of smart automation.

Advanced

Ansible set_fact: Create and Modify Variables at Runtime

playbooks · 5

Master Ansible set_fact for dynamic variable creation. Learn syntax, set_fact vs register, conditionals, loops, caching, and best practices.

Beginner

Mastering Time in Ansible: The now() Function Guide

playbooks · 6

Complete guide to the Ansible now() function. Format dates with strftime, calculate uptime, compare timestamps, and use UTC/local time in playbooks.

Beginner

Revolutionising Ansible: Testing the Limits of OpenAI’s ChatGPT for Smarter Automation

playbooks · 2

Exploring the Power of OpenAI’s ChatGPT in Revolutionizing Ansible Coding: Advancing Automation to the Next Level. Tested, copy-paste examples included.

Advanced

Output Ansible Playbooks as YAML with Callback Plugin

playbooks · 3

Learn how to use Ansible ping module to test connections and customize output with callback plugins, demonstrated with a detailed playbook.

Advanced

Ansible Handler — Run Immediately

playbooks · 2

How to flush the execution of an Ansible handler after the notification task using the ansible.builtin.meta module. Tested, copy-paste examples included.

Beginner

Run a Python Script on Remote Machines — Ansible module script

playbooks · 7

How to automate the execution of a "cars.py" custom Python script on a remote machine after transferring it and processing the output as an Ansible.

Beginner

Ansible Sudo Password — Secure become

playbooks · 6

Configure sudo password for Ansible become. Use --ask-become-pass, ansible-vault encrypted vars, and NOPASSWD sudoers safely.

Beginner

Three options to Safely Limit Ansible Playbooks Execution to a Single Machine

playbooks · 5

Three options to safely limit Ansible Playbook execution to a single machine using runtime parameters, playbook code, and variables.

Advanced

Ansible wait_for: Wait for Ports, Files, Conditions

playbooks · 7

Learn the Ansible wait_for module: wait for ports, files, conditions. Covers timeout, delay, parameters, real-world examples, and troubleshooting.

Advanced

Two Ways to Run Multiple Ansible Handlers — Ansible Playbook

playbooks · 2

Discover two methods to trigger multiple Ansible handlers based on changed status in playbooks, enhancing task execution efficiency.

Beginner

Use Ansible Vault in Ansbile Playbook — ansible vault

playbooks · 3

Learn how to use Ansible Vault to secure sensitive data such as passwords and access keys in your playbooks with practical examples and a live Playbook.

Beginner

Ansible date_time — Timestamp Examples

playbooks · 6

Use ansible_date_time for dates, timestamps, and time formatting in Ansible Playbooks. Complete guide with strftime filters, comparisons.

Advanced

Use Date and Time in Ansible Without Facts

playbooks · 2

Learn how to use date, time, and timestamp in Ansible playbooks without facts. Follow our Playbook and simple Ansible code examples for quick solutions.

Beginner

Ansible terminology — What is an Ansible Playbook?

playbooks · 3

A step-by-step guide inside the Ansible Playbook anatomy: play, tasks, modules, conditional, loop, handler, variable, list.

Beginner