infrastructure as code

101 Ansible tutorials tagged “infrastructure as code”. Working examples covering automation, configuration management, and DevOps workflows.

Ansible + Terraform — Enterprise Infrastructure as Code Pipeline

enterprise · 7

Build a production IaC pipeline combining Terraform for provisioning and Ansible for configuration. Integrate with CI/CD, manage state, and automate the.

advanced

Ansible vs Terraform — Which Tool When? Complete Comparison (2026)

playbooks · 4

Comprehensive comparison of Ansible vs Terraform. When to use each, strengths, weaknesses, and how to use them together for complete infrastructure.

beginner

ARA Records Ansible — Reporting

playbooks · 4

Install and configure ARA Records Ansible to track playbook runs, audit changes, and troubleshoot failures via a web dashboard. Setup guide with examples.

Beginner

Ansible Automation AI

playbooks · 3

Explore Ansible Automation AI, your versatile resource for mastering Ansible, from basics to advanced Kubernetes and VMware integrations, simplifying IT.

Advanced

Manage Ansible Collection Changelogs with Antsibull-Changelog

fundamentals · 2

Learn how to use Antsibull-Changelog to efficiently manage and document updates in your Ansible collections. Follow this guide to keep your changelogs.

Beginner

Mastering Ansible-Creator: Scaffold Collections and Roles Fast

playbooks · 5

Complete guide to ansible-creator — scaffold Ansible collections, roles, and plugins with proper structure. Installation, commands, VS Code integration,.

Beginner

Ansible Jinja2 Conditionals — Ternary

playbooks · 5

Use Jinja2 ternary, bool, and if-else expressions in Ansible. Inline conditionals for variables, templates, and task parameters with examples.

Beginner

Ansible London Meetup 2024: Automation & DevOps Insights

playbooks · 4

Don’t miss the Ansible London Meetup 2024! Learn about automation, RAG, and compliance with Ansible, plus network with the DevOps community.

Advanced

Ansible and Packer — Build Golden Images with Automated Provisioning

playbooks · 6

Use Ansible as a Packer provisioner to build golden VM images for AWS, Azure, VMware, and Proxmox. Complete HCL templates, playbook examples, CI/CD.

Intermediate

Ansible Proxmox Automation — VMs, Containers, and Cluster Management

playbooks · 6

Automate Proxmox VE with Ansible using community.general modules. Create VMs from templates, manage LXC containers, configure storage, networking.

Beginner

Ansible validate_argument_spec — Roles

playbooks · 5

Validate role inputs with ansible.builtin.validate_argument_spec. Define required parameters, types, choices, and defaults with complete examples.

Advanced

Ansible Molecule Scenarios — Testing

playbooks · 6

Explore Molecule scenarios for testing Ansible roles and playbooks. Learn how to configure and use scenarios for effective development and testing in.

Beginner

Ansible Troubleshooting: Handling Common Errors

playbooks · 11

Fix the 'run_once may behave differently if strategy is free' warning. Understand run_once with serial, strategy, and delegate_to patterns.

Advanced

Fix Ansible SSH Connection Errors

playbooks · 3

Resolve Ansible SSH connection failures: host key verification, permission denied, unreachable hosts, timeout errors, and known_hosts issues.

Beginner

Ansible troubleshooting — Error 102: No Jinja2 in 'when' Conditions

playbooks · 4

The when clause in Ansible playbooks controls task execution based on conditions. Learn to avoid Ansible Error 102 by ensuring correct Jinja2.

Beginner

Ansible troubleshooting — Error 104: Deprecated Bare Vars

playbooks · 4

Ansible Error 104, "Deprecated Bare Vars", identifies ambiguous expressions that could be misinterpreted as variables or strings, promoting clarity in.

Beginner

Ansible troubleshooting — Error 202: Risky Octal Permissions

playbooks · 4

Ansible Error 202, "`risky-octal`", warns against using octal file permissions without a leading zero, which can lead to unpredictable outcomes.

Beginner

Ansible troubleshooting — Error 206 Jinja Spacing

playbooks · 4

Ansible Error 206, "`jinja[spacing]`", ensures proper spacing within Jinja2 templates for improved readability and accuracy

Beginner

Ansible troubleshooting — Error 208: risky-file-permissions

playbooks · 4

Ansible Error 208, "`risky-file-permissions`," warns against insecure file permissions set by modules like ansible.builtin.copy or.

Beginner

Ansible Lint Rule 302: deprecated-command-syntax — Fix Shorthand

playbooks · 4

Fix Ansible Lint rule 302 deprecated-command-syntax by replacing shorthand free-form syntax with structured args. Examples for command, shell, raw.

Beginner

Fix Ansible Error 303 — Use Module

playbooks · 4

Rule 303, command-instead-of-module, advises using Ansible modules over raw commands for improved playbook reliability."

Beginner

Ansible troubleshooting — Error 304: inline-env-var

playbooks · 4

Rule 304, inline-env-var, advises against setting environment variables directly within the ansible.builtin.command module.

Beginner

Ansible troubleshooting — Error 306: risky-shell-pipe

playbooks · 4

Rule 306, risky-shell-pipe, advises setting pipefail to ensure reliable task execution in Ansible shell modules. With tested, real-world examples.

Beginner

Ansible Lint Rule 402: latest[hg] — Pin Mercurial Revisions

playbooks · 4

Fix Ansible Lint rule 402 latest[hg] by pinning Mercurial repository revisions. Learn why HEAD is risky, how to pin commits, and when to skip the rule.

Beginner

Ansible troubleshooting — Error 403: package-latest

playbooks · 5

Using state: latest for package installations in Ansible can introduce unpredictability. Discover how to improve the code with a practical example to.

Beginner

Ansible troubleshooting — Error 404: no-relative-paths

playbooks · 4

Rule 404, no-relative-paths, ensures stability by discouraging the use of relative paths in Ansible copy and template modules.

Advanced

Ansible troubleshooting — Error 501: partial-become

playbooks · 3

Rule 501, partial-become, ensures consistent privilege escalation in Ansible by verifying become_user aligns with become: true

Beginner

Ansible troubleshooting — Error 503: no-handler

playbooks · 3

Rule 503, no-handler, in Ansible ensures tasks responding to changes are structured as handlers for efficient playbook management.

Beginner

Ansible troubleshooting — Error 602: empty-string-compare

playbooks · 4

Ansible Rule 602, empty-string-compare, enhances playbook clarity by promoting direct length comparisons over empty string checks.

Advanced

Ansible troubleshooting — Error 702: meta-no-tags

playbooks · 4

Ansible Rule 702, meta-no-tags, ensures role metadata tags use lowercase letters and digits for consistency and clarity.

Advanced

Ansible troubleshooting — Error 703: meta-incorrect

playbooks · 4

Ansible Rule 703, meta-incorrect, ensures role metadata fields like author, description, company, and license have defined values.

Advanced

Ansible troubleshooting — Error 704: meta-video-links

playbooks · 4

How to solve Ansible Error 704: meta-video-links - A guide to ensuring proper video link formatting. With tested, real-world examples.

Beginner

Ansible troubleshooting — Error args

playbooks · 5

The args rule in Ansible validates task arguments against module documentation, ensuring correct parameter usage for reliable automation.

Advanced

Ansible troubleshooting — Error avoid-implicit

playbooks · 4

The avoid-implicit rule in Ansible identifies and advises against implicit behaviors, promoting explicit instructions for predictable playbook execution.

Beginner

Fix Ansible FQCN Error — Use Fully Qualified Names

playbooks · 4

Fix Ansible FQCN errors by using fully-qualified collection names like ansible.builtin.copy instead of short names. Migration guide with before/after.

Beginner

Ansible troubleshooting — Error galaxy

playbooks · 7

The galaxy rule verifies that the version specified in galaxy.yml for an Ansible collection is at least 1.0.0, ensuring standard versioning for production.

Advanced

Ansible troubleshooting — Error loop-var-prefix

playbooks · 4

The loop-var-prefix rule in Ansible promotes clear variable naming in loops to avoid ambiguity, especially in nested or multiple loop scenarios.

Advanced

Ansible troubleshooting — Error no-free-form

playbooks · 3

In Ansible, the no-free-form rule promotes clarity and reliability by discouraging free-form syntax in module calls within playbooks.

Beginner

Ansible vs Terraform — Key Differences Explained

playbooks · 5

Ansible vs Terraform comparison — understand when to use each tool, key differences in state management and execution, and how to combine them for.

Intermediate

Ansible Galaxy Roles — GitHub Actions

playbooks · 5

Learn how to automate infrastructure with Ansible Galaxy roles in GitHub Actions. Use Datadog for seamless monitoring integration.

Beginner

Automate Oracle Cloud Infrastructure with Ansible Playbooks

playbooks · 6

Learn how to automate Oracle Cloud Infrastructure with Ansible, from setup to creating and managing compute instance pools.

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

Automating PostgreSQL Configuration with Ansible Setting Maximum Connections

playbooks · 7

Learn how to use Ansible lineinfile module to configure PostgreSQL max_connections and other settings. Complete guide with playbooks for tuning.

Beginner

Can Ansible Automate Windows?

playbooks · 4

Learn how Ansible can automate Windows systems, its requirements, supported modules, and use cases for streamlining Windows administration tasks.

Advanced

Can Ansible Be Used for Deployment?

playbooks · 3

Learn how Ansible can be used for application deployment, its capabilities, and best practices for automating deployment workflows.

Beginner

Can Ansible Be Used for Monitoring?

playbooks · 4

Explore how Ansible can be used to automate monitoring setups, deploy monitoring tools, and collect system metrics for infrastructure management.

Beginner

Ansible Windows — WinRM Modules

playbooks · 3

Manage Windows servers with Ansible over WinRM. Install packages, configure IIS, manage users, and automate updates with native Windows modules.

Beginner

Can Ansible Create VMs?

playbooks · 3

Learn how Ansible can create virtual machines in cloud and on-premises environments, including examples and best practices.

Beginner

Can Ansible Install an OS?

playbooks · 4

Use Ansible to automate OS installation with PXE boot, Kickstart, Preseed, and cloud-init. Bare-metal provisioning and VM deployment patterns.

Beginner

Can Ansible Manage Windows Hosts?

playbooks · 3

Learn how Ansible manages Windows hosts, its requirements, and use cases for automating tasks on Windows systems. With tested, real-world examples.

Beginner

Can Ansible Manage Windows?

playbooks · 3

Discover how Ansible manages Windows systems, its requirements, and the modules available for automation tasks. With clear, copy-paste, step-by-step examples.

Advanced

Ansible vs Jenkins: Key Differences and When to Use Each

playbooks · 3

Ansible vs Jenkins compared — learn the key differences, strengths, and when to use each tool. Can Ansible replace Jenkins for CI/CD and automation?

Advanced

Can Ansible Replace Terraform?

playbooks · 3

Understand the differences between Ansible and Terraform, and whether Ansible can fully replace Terraform in managing infrastructure.

Advanced

Can Ansible Run PowerShell Scripts?

playbooks · 3

Learn how Ansible can run PowerShell scripts on Windows systems, including setup requirements, examples, and best practices.

Beginner

Can Ansible Run Python Scripts?

playbooks · 4

Learn how Ansible can execute Python scripts on target systems, its requirements, and examples for automating Python-based workflows.

Beginner

Can Ansible Run on Ubuntu?

playbooks · 3

Discover how to install and use Ansible on Ubuntu for automating infrastructure and application tasks with ease. With clear, copy-paste, step-by-step examples.

Advanced

Can Ansible Run on Windows?

playbooks · 3

Explore whether Ansible can run on Windows, its requirements, and how to configure Ansible on a Windows machine for automation workflows.

Beginner

Can Ansible Work on Windows?

playbooks · 3

Learn how Ansible can manage and automate Windows systems, including setup, modules, and best practices. With tested, real-world examples.

Beginner

Common Interview Questions, Answers and Troubleshooting Tips

interviews · 7

Fix the Ansible FQCN lint error by converting short module names to fully-qualified collection names. Before/after examples for all common modules.

Beginner

Ansible Compare Lists — Data Check

playbooks · 3

Learn how to compare two lists in Ansible playbooks, verify their lengths, and ensure matching elements using robust filters and syntax.

Beginner

Ansible Conditional Role Execution

playbooks · 4

Discover how to use conditional logic in Ansible playbooks to execute roles like Datadog only when specific variables are set, optimizing deployments.

Advanced

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

Enhancing Ansible Role Development with Best Practices with ansible-later

playbooks · 4

Discover ansible-later, a fast and user-friendly linting tool for Ansible roles. Learn about its installation, configuration, and default settings to.

Beginner

Extracting JSON Data with Ansible

playbooks · 3

Learn how to use Ansible to extract specific JSON data efficiently with the json_query filter, showcasing an example of retrieving folder values based.

Advanced

Ansible Community Insights: The Bullhorn Newsletter Issue #128

modules · 3

Dive into the latest Ansible Community Newsletter, Issue 128, packed with updates on releases, events like FOSDEM, new collections, and community.

Beginner

How to Install Ansible on Ubuntu 23.10 Mantic Minotaur

playbooks · 4

Learn how to install Ansible on Ubuntu 23.10 through a remote SSH session with easy-to-follow steps and commands for seamless automation setup.

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

Install SELinux with Ansible — RHEL 8

playbooks · 3

Learn how to use Ansible to install, configure, and enable SELinux on RHEL 8. Ensure security and compliance through automation.

Beginner

Integrate Ansible with VMware vRealize Automation Efficiently

playbooks · 7

Learn how to efficiently integrate Ansible with VMware vRealize Automation to automate IT operations, enhance scalability, and ensure consistency.

Advanced

Automating Key Management with Ansible Using ansible.utils.remove_keys

playbooks · 3

Master Ansible's remove_keys utility to remove keys dynamically using regex patterns in playbooks for efficient data management and automation.

Beginner

Ansible Compliance Drift — Config

playbooks · 2

Detect and remediate configuration drift with Ansible. CIS benchmark checks, automated remediation playbooks, and scheduled compliance scans.

Beginner

Nested Lists in Ansible Playbooks

playbooks · 2

Learn how to work with nested lists in Ansible playbooks. Practical examples of iterating over complex data structures using loops and filters.

Advanced

Mastering Nested Lists in Ansible Playbooks: A Practical Guide

playbooks · 3

Learn how to handle nested lists in Ansible using powerful filters like flatten and unique. Simplify data structures for efficient automation workflows.

Advanced

Ansible Throttle — Scale Safely

playbooks · 3

Learn how to effectively manage networking throttles and optimize performance when automating tasks across 3000 servers with Ansible, including practical.

Beginner

Participate in the Ansible Project Survey 2024 & Join the Community

cloud-virtualization · 4

Take part in the Ansible Project Survey 2024 to help shape the future of automation. Join the community and share your valuable feedback today!

Advanced

How to Pass Variables to Ansible Playbook via Command Line?

playbooks · 3

How to pass or override an Ansible Playbook variable from the command line in plaintext, JSON, or YAML. It is very useful to combine some script.

Beginner

Ansible OPA Policy Validation

playbooks · 4

A comprehensive guide to setting up and using the Ansible Policy tool for managing policies in your Ansible projects and create effective Rolebook.

Beginner

Red Hat Ansible Automation Platform 2.5: New Features & Updates

playbooks · 4

Explore the new features of Red Hat Ansible Automation Platform 2.5, from AI-driven playbooks to a unified UI and automation tools that boost efficiency.

Beginner

Red Hat Ansible Automation Platform book by Luca Berton

playbooks · 6

Discover Luca Berton comprehensive guide to the Ansible Automation Platform. Learn to streamline, automate, and enhance IT operations efficiently.

Advanced

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 Default SSH Username & Password

playbooks · 2

Configure default SSH credentials in ansible.cfg, inventory, and group_vars. Set ansible_user, ansible_password, and ansible_ssh_private_key_file.

Beginner

Simplify Ansible Output with the community.general.dense Callback Plugin

playbooks · 3

Learn how to reduce verbosity in Ansible output using callback plugins, enhancing efficiency and integration in large-scale automation tasks.

Advanced

Simplifying Ansible Output with the community.general.unixy Callback Plugin

playbooks · 3

Learn how to enhance Ansible playbook readability by using the community.general.unixy callback plugin for cleaner and more concise output.

Advanced

Install Minikube with Ansible — Local Kubernetes Setup Guide

playbooks · 5

Install and configure Minikube with Ansible for local Kubernetes development. Complete guide with Galaxy role, manual installation, cluster management,.

Intermediate

Understanding Split in Ansible: A Powerful Tool for Data Transformation

playbooks · 3

Learn to use the split filter in Ansible Playbooks for tasks like converting CSV strings to lists, extracting substrings, and splitting lists into smaller.

Beginner

Ansible Molecule — Docker Testing

playbooks · 4

Explore how to configure Molecule with Docker for testing Ansible roles, ensuring reliable and efficient infrastructure as code with reproducible.

Beginner

Ansible VMware Tag Verification

playbooks · 5

Use Ansible community.vmware collection to verify, create, and manage VMware tags and categories. Complete playbook examples for tag lifecycle management.

Beginner

Automating VMware Tag Verification with Ansible

playbooks · 3

Leverage Ansible to efficiently manage and verify VMware cluster tags, identifying critical metadata for streamlined resource management.

Advanced

What Are Ansible Collections?

playbooks · 3

Learn about Ansible collections, their purpose, structure, and how they simplify modular automation with reusable content.

Beginner

What Are Ansible Facts?

playbooks · 3

Explore Ansible facts, their role in automation, and how they provide critical information about managed nodes to enhance playbook flexibility.

Beginner

What Are Ansible Handlers?

playbooks · 3

Learn what Ansible handlers are, their purpose, and how they enable efficient task execution in playbooks. With tested, real-world examples.

Beginner

What Are Ansible Modules?

playbooks · 3

Discover the purpose of Ansible modules, how they function, and why they are essential building blocks for automation with Ansible.

Beginner

What Is an Ansible Playbook? Examples & How It Works

playbooks · 3

Learn Ansible playbooks: YAML automation of infrastructure. Covers structure, variables, handlers, conditionals, loops, and best practices with examples.

Advanced

What Are Ansible Plugins?

playbooks · 3

Learn what Ansible plugins are, their types, and how they extend Ansible's functionality to enhance automation workflows.

Beginner

Ansible Roles Explained — Structure, Create, and Use Roles

playbooks · 5

Learn how to create, structure, and use Ansible roles. Complete guide with directory layout, defaults vs vars, Galaxy, dependencies, and real-world.

Beginner

Ansible Tags — Run or Skip Tasks

playbooks · 3

Use Ansible tags to selectively run or skip tasks. Examples with --tags, --skip-tags, always, never, and tag inheritance in roles and includes.

Advanced

Ansible template — Jinja2 Module

playbooks · 3

Use Ansible template module with Jinja2 to generate dynamic configuration files. Variables, loops, conditionals, and filters with playbook examples.

Beginner

What Are Ansible Variables?

playbooks · 3

Learn about Ansible variables, their purpose, types, and how they enhance the flexibility of playbooks in automation workflows.

Advanced

Where Are Ansible Collections Installed?

modules · 3

Find where Ansible collections are installed, configure COLLECTIONS_PATHS, and manage multiple collection locations. Default paths for all platforms.

Beginner

Where Are Ansible Logs Stored?

playbooks · 3

Discover where Ansible logs are stored, how to enable logging, and best practices for managing Ansible logs in automation workflows.

Advanced

Where Are Ansible Playbooks Stored?

playbooks · 3

Where to store Ansible playbooks, recommended directory structures, and best practices for organizing roles, inventories, and group_vars.

Beginner