🔥 BLACK FRIDAY SALE1 course ₹199·any 3 courses ₹399 for 3 months·ALL courses + 1 mock interview ₹599 for 6 monthsClaim offer →

Sections · Ansible

🅰️

Ansible Automation

LIVE

Automate servers, clouds and networks, from your first playbook to enterprise automation at scale.

The complete Ansible path: inventories, playbooks, variables and templates, roles and collections, real Linux, Windows, network and cloud automation, Vault and security hardening, testing with Molecule and ansible-lint, execution environments, AWX and Automation Platform, Event-Driven Ansible, CI/CD pipelines, a capstone project and interview preparation.

Ansible
₹500 ₹199

for 3 months · no auto-renewal

Black Friday offer: 1 course ₹199 · any 3 courses ₹399 for 3 months · all courses + 1 mock interview ₹599 for 6 months

Get this section
36in-depth lessons
18+hours of learning
282interview Q&As
4free lessons

What you will be able to do

  • ✓Automate servers with idempotent playbooks instead of fragile shell scripts
  • ✓Organise inventories, variables and Jinja2 templates cleanly
  • ✓Build reusable roles and collections and publish them
  • ✓Automate Linux, Windows, network devices and cloud resources
  • ✓Deploy applications with rolling updates and zero downtime
  • ✓Protect secrets with Ansible Vault and harden servers to a benchmark
  • ✓Test automation with ansible-lint and Molecule in CI
  • ✓Run automation at scale with AWX, Automation Platform and Event-Driven Ansible

Who this is for

  • Sysadmins and DevOps engineers automating infrastructure
  • Developers who deploy and configure servers
  • Anyone preparing for Ansible or RHCE-style interviews

What you need first

Basic Linux and SSH. No Ansible or YAML experience needed.

Hands-on projects

  • Provision and configure a web stack end to end
  • Zero-downtime rolling deployment with a load balancer
  • A hardened, tested role with Molecule and CI

Full curriculum: what you will learn, topic by topic

36 topics across 7 tracks. Open a track to see every topic and what it teaches.

🧭 Ansible Foundations6 topics

What Ansible is, your practice lab, inventories, ad hoc commands, first playbooks, variables and facts.

1What Is Ansible? Agentless Automation, Idempotency and How It WorksUnderstand the problem Ansible solves, how its agentless architecture works, what really happens when a task runs, why idempotency changes everything, and how Ansible compares with shell scripts, Terraform, Puppet and Chef. Includes your first ad hoc command and playbook.Foundation · 24 minFREE2Install Ansible and Build a Free Practice Lab with Docker and SSHSet up a professional Ansible workstation with pipx or uv, configure ansible.cfg, create SSH keys, and build a three-server practice lab with Docker Compose in minutes. Includes an inventory, connection tests, a troubleshooting table and the project layout used in the rest of the course.Foundation · 25 minFREE3Ansible Inventories in Depth: Static, YAML, Dynamic Cloud Sources and Group DesignMaster the inventory, the map that tells Ansible which machines exist and how to reach them. Cover INI and YAML formats, groups and children, patterns and limits, group_vars and host_vars, multi-environment layouts, dynamic cloud inventory plugins, constructed groups and the design rules that keep inventories maintainable at scale.Intermediate · 31 min🔒 Paid4Ansible Modules and Ad Hoc Commands: Idempotent Building Blocks and How to Read Their OutputLearn how modules work, how to run them ad hoc for fast operations, and how to read their JSON results. Compare command, shell and raw, use the essential modules for files, packages, users and services, understand return values and check mode, and know when an ad hoc command is the right tool.Intermediate · 28 min🔒 Paid5Writing Your First Ansible Playbooks: YAML, Plays, Tasks, Handlers and the Execution ModelBuild real playbooks from the ground up. Learn the YAML rules that trip beginners, the anatomy of plays and tasks, how Ansible executes tasks across hosts, handlers and notifications, essential run options, syntax checking and a complete, re-runnable web server playbook tested on your lab.Intermediate · 32 min🔒 Paid6Ansible Variables, Facts and Precedence: Where Values Come From and Which One WinsMaster how Ansible decides what a variable equals. Learn every way to define variables, discover facts, use magic variables, register and set values at run time, understand the precedence order with worked examples, merge dictionaries safely, and follow naming and design rules that prevent the surprises that cost teams hours.Intermediate · 32 min🔒 Paid
📜 Playbook Craft6 topics

Jinja2 templating, conditionals and loops, handlers, error handling, roles and collections.

1Jinja2 Templating in Ansible: Filters, Tests, Loops and Configuration File GenerationTurn variables into real configuration. Learn Jinja2 syntax, the template module, control structures, whitespace control, the filters and tests you use daily, lookups, macros, safe validation of generated files and the stricter templating rules of current ansible-core, with a complete nginx and application config example.Intermediate · 33 min🔒 Paid2Ansible Conditionals, Loops and Flow Control: when, loop, until, block, rescue and IncludesMake playbooks react to the host in front of them. Learn how when expressions are evaluated (and what changed in recent ansible-core), loops with loop_control and filters, retries with until, grouping with block, rescue and always, dynamic include versus static import, and the flow-control keywords that keep playbooks readable.Intermediate · 30 min🔒 Paid3Ansible Handlers and Idempotent Design: Notify, Flush, Check Mode and Safe Re-runsLearn the idea that makes Ansible safe to run repeatedly. Understand idempotency, how handlers run once at the right time, listen topics, flush_handlers, what happens when a play fails, how check mode and diff mode work, and how to design tasks that report changes honestly and converge to a desired state.Intermediate · 28 min🔒 Paid4Ansible Roles: Directory Structure, Defaults, Dependencies and Reusable AutomationTurn playbooks into reusable building blocks. Learn the role directory layout, defaults versus vars, handlers and templates in roles, include_role versus roles, dependencies and argument specs, naming and variable hygiene, designing role interfaces, sharing roles through collections, and a worked nginx role.Intermediate · 30 min🔒 Paid5Ansible Collections and the Ecosystem: FQCNs, Galaxy, requirements.yml, Private Hubs and Building Your OwnUnderstand how Ansible content is packaged and distributed. Covers the split between ansible-core and collections, fully qualified collection names, installing collections and roles with ansible-galaxy and requirements.yml, version pinning, collection search paths, the community package versus ansible-core, private Automation Hub and Git sources, creating and publishing your own collection with galaxy.yml, testing and migration from standalone roles.Intermediate · 26 min🔒 Paid6Ansible Error Handling, Retries and Debugging: Reading Failures, -vvv, the Debugger and Safe RecoveryFix failing playbooks faster and make them fail well. Learn to read Ansible errors, use verbosity levels, the debug module, the task debugger, step and start-at-task, check and diff modes, ignore_errors versus failed_when, block and rescue, retries, any_errors_fatal, max_fail_percentage, unreachable hosts, and a systematic debugging method.Intermediate · 30 min🔒 Paid
⚙️ Real-World Automation8 topics

Linux servers, configuration management, rolling deployments, Windows, network, cloud and containers.

1Linux Server Automation with Ansible: Users, Packages, Services, Firewalls and a Full DeploymentAutomate a real Linux server end to end. Manage users and SSH keys, packages and repositories, files and permissions, services, firewalls, sysctl, cron and systemd timers, then deploy a Python web application behind nginx with a systemd unit, templated configuration, validation and a safe rolling restart.Intermediate · 32 min🔒 Paid2Configuration Management with Ansible Templates: Config Files, validate, Drop-ins, Facts-Driven Config and Safe RolloutManage application and OS configuration reliably. Covers the template module in depth (validate, backup, mode, ownership, newline control), Jinja2 patterns for config files, drop-in directories, lineinfile, blockinfile and ini_file versus whole-file templates, rendering from facts and inventory, handlers that reload safely, avoiding drift, testing rendered output, secrets in templates, and worked examples for nginx, sshd and a systemd service.Intermediate · 26 min🔒 Paid3Rolling Deployments with Ansible: serial, Load Balancer Draining, Health Checks and RollbackUpdate live services without downtime. Learn the rolling update pattern with serial batches and canaries, delegating to load balancers to drain and re-enable hosts, health checks and readiness gates, max_fail_percentage, database migration ordering, blue-green and canary variations, rollback design, and a complete production-grade playbook.Advanced · 32 min🔒 Paid4Ansible for Windows: WinRM and SSH Connections, win_ Modules, Chocolatey, Domains and PatchingManage Windows servers with Ansible without installing an agent. Covers how Ansible connects to Windows (WinRM, SSH), preparing hosts, inventory variables, authentication and certificates, the ansible.windows and community.windows modules, installing software with Chocolatey, managing features, services, registry, IIS, files and users, running PowerShell, patching with reboots, Active Directory basics, Vault for credentials and troubleshooting.Intermediate · 30 min🔒 Paid5Network Automation with Ansible: Network Connection Plugins, Resource Modules, Config Backup, Validation and Safe ChangeAutomate routers, switches and firewalls with Ansible. Covers how network modules differ from server modules, connection types (network_cli, netconf, httpapi), platform collections, inventory design, facts and resource modules, templated configuration, backup and diff, check mode, commit and rollback safety, parsing show-command output, validation and compliance, scale and CI/CD for networks and troubleshooting.Intermediate · 28 min🔒 Paid6Cloud Automation with Ansible: Dynamic Inventory, Provisioning on AWS, Azure and GCP, Tags, Idempotence and StateUse Ansible with public clouds. Covers authentication and least privilege, cloud collections, provisioning networks and instances idempotently, tagging strategy, dynamic inventory plugins that discover hosts by tag, configuring freshly created servers, bootstrap and waiting, images and autoscaling hand-off, when to use Terraform instead, cost and cleanup, secrets, testing and a complete AWS example.Intermediate · 30 min🔒 Paid7Containers and Kubernetes with Ansible: Docker Hosts, community.docker, kubernetes.core, Helm and Cluster BootstrapAutomate container platforms with Ansible. Covers installing and hardening Docker hosts, managing images, networks, volumes and containers with community.docker, Compose projects, building images, registries and secrets, then Kubernetes with kubernetes.core (k8s, helm, k8s_info), templated manifests, waiting for rollouts, kubeconfig and RBAC, bootstrapping clusters, GitOps boundaries and where Ansible should not replace Kubernetes-native tools.Intermediate · 30 min🔒 Paid8Building Images with Packer and Ansible: Golden AMIs, Container Images, Provisioner Patterns and Bake versus ConfigureCreate machine and container images with Packer using Ansible as the provisioner, following the book's chapter on creating images. Covers why bake images, Packer templates (HCL), builders for AWS, Azure and QEMU, the ansible and ansible-local provisioners, building a hardened base image, cleaning and sealing images, testing images, versioning and promotion pipelines, bake versus configure trade-offs, and container image alternatives.Intermediate · 24 min🔒 Paid
🔐 Security and Compliance3 topics

Vault and secrets, privilege escalation and SSH, hardening and compliance automation.

1Ansible Vault and Secrets Management: Encrypt Variables, Vault IDs, no_log and External Secret StoresKeep passwords, tokens and keys safe in Ansible projects. Learn what Vault protects (and what it does not), how to encrypt files and single values, organise variables so secrets are findable, use separate vault IDs per environment, stop secrets leaking into logs, rotate keys, and know when to use an external secret manager instead.Intermediate · 30 min🔒 Paid2Ansible Security Model: SSH Keys, Privilege Escalation with become, Least Privilege and Secure Control NodesSecure how Ansible connects and acts. Covers the trust model of the control node, SSH key and certificate management, host key verification, bastions and ProxyJump, privilege escalation with become and sudo rules, per-task and per-play escalation, restricting automation accounts with sudoers, secrets handling and no_log, controller access control and audit, protecting the control node and supply chain, and a hardening checklist.Advanced · 28 min🔒 Paid3Hardening and Compliance Automation with Ansible: CIS Baselines, STIG, Audit Mode, Remediation and EvidenceTurn security baselines into repeatable automation. Covers hardening scope and risk, mapping controls (CIS, STIG, internal standards) to tasks, writing idempotent hardening roles for SSH, users, kernel, network, filesystem and logging, audit-then-remediate workflow, tagging controls, exceptions, testing with Molecule and InSpec or OpenSCAP, drift detection, reporting evidence for auditors, safe rollout and common pitfalls.Advanced · 28 min🔒 Paid
🧪 Engineering and Testing6 topics

ansible-lint, Molecule, performance tuning, custom modules and plugins, execution environments.

1Ansible Lint and Code Quality: ansible-lint Profiles, yamllint, Pre-commit, CI Gates and Review StandardsKeep Ansible code clean and safe with automated checks. Covers what ansible-lint checks and why, rule profiles from min to production, configuration and skip policy, yamllint, syntax and check-mode checks, pre-commit hooks, CI gates and SARIF reporting, the most common rule violations with fixes, writing team standards, handling legacy code gradually and code review checklists.Intermediate · 24 min🔒 Paid2Testing Ansible with Molecule and CI: Lint, Converge, Idempotence, Verify and PipelinesTest automation like software. Learn the Ansible test pyramid, Molecule scenarios (create, converge, idempotence, verify, destroy), drivers and platforms, verifying with Ansible assertions or testinfra, multi-OS matrices, handling systemd in containers, wiring lint and Molecule into GitHub Actions or GitLab CI, and pragmatic test design.Advanced · 30 min🔒 Paid3Ansible Performance Tuning: Forks, SSH Multiplexing, Pipelining, Fact Caching and StrategiesMake slow playbooks fast with evidence. Learn how Ansible spends time per task, how to measure with profile_tasks, and which settings actually help: SSH multiplexing and ControlPersist, pipelining, forks, gathering facts less, fact caching, strategies, async tasks, and writing tasks that do less work. Includes a benchmark lab.Advanced · 30 min🔒 Paid4Custom Ansible Modules, Plugins and Filters: Writing Python Modules, Filter and Lookup Plugins, Callbacks and TestsExtend Ansible when built-in tools fall short. Covers when to write a module versus using existing ones, the module contract (arguments, check mode, JSON results, idempotence), writing a Python module with AnsibleModule, documentation and argument specs, filter and test plugins, lookup plugins, callback plugins for logging and notifications (as in the book's callback chapter), module_utils, packaging in a collection, testing with unit tests and ansible-test, and PowerShell modules.Advanced · 30 min🔒 Paid5Ansible Execution Environments and ansible-navigator: Reproducible Runtimes as Container ImagesPackage Ansible with its collections, Python libraries and system packages into a container image so playbooks run the same everywhere. Covers the dependency problem, what an execution environment contains, ansible-builder and execution-environment.yml, building and publishing images, running with ansible-navigator and ansible-runner, mounting inventories and credentials safely, using EEs in controllers and CI, versioning and scanning, and troubleshooting.Advanced · 24 min🔒 Paid6Best Practices for Ansible Projects: Layout, Naming, Variables, Idempotence, Testing and Release HabitsConsolidate the habits of mature Ansible codebases. Covers project layout and inventory organisation, naming conventions, variable hygiene and precedence discipline, keeping playbooks thin and roles focused, idempotence rules, secrets, tags and limits, documentation, testing pyramid, CI and release practices, performance habits, anti-patterns and a maturity checklist, drawing on the book's best-practices chapter.Intermediate · 24 min🔒 Paid
🏢 Automation at Scale4 topics

AWX and Automation Platform, Event-Driven Ansible, CI/CD and infrastructure pipelines.

1AWX and the Ansible Automation Platform: Job Templates, Credentials, RBAC and WorkflowsRun Ansible as a shared service instead of from laptops. Learn what AWX and the Red Hat Ansible Automation Platform provide, the core objects (organizations, inventories, credentials, projects, job templates, workflows, schedules), role-based access, execution environments and scaling, the REST API, and a rollout plan from scripts to a governed platform.Advanced · 30 min🔒 Paid2Event-Driven Ansible: Rulebooks, Event Sources, Conditions, Actions and Safe Self-Healing AutomationReact to the environment automatically with Event-Driven Ansible. Covers the model of sources, rules and actions, writing rulebooks in YAML, common source plugins (webhook, Kafka, alertmanager, file and cloud event feeds), condition syntax, running playbooks and job templates as actions, throttling and deduplication, safe design for self-healing (guardrails, approvals, idempotence, loop prevention), deployment with ansible-rulebook and the controller, testing and observability.Advanced · 26 min🔒 Paid3Ansible in CI/CD Pipelines: Linting, Testing, Check Mode, Deployments, Approvals and Controller IntegrationIntegrate Ansible with continuous integration and delivery, following the book's CI/CD chapter. Covers pipeline stages for automation code (lint, test, plan), deployment pipelines that call Ansible, GitHub Actions, GitLab CI and Jenkins examples, secrets and short-lived credentials, inventories per environment, check and diff as plan, approvals and promotion, calling the automation controller through its API, artefact versioning, rollback, observability and common mistakes.Intermediate · 26 min🔒 Paid4Ansible with Terraform: Division of Labour, Handoff Patterns, Dynamic Inventory, terraform Module and PipelinesCombine Terraform (or OpenTofu) and Ansible effectively. Covers what each tool is best at, handoff patterns (tags and dynamic inventory, Terraform outputs to inventory, the cloud-init bootstrap, the cloud.terraform collection, Terraform calling Ansible with provisioners and why to avoid it), state and secrets boundaries, pipeline design, drift handling, immutable versus mutable approaches, testing and failure modes.Advanced · 24 min🔒 Paid
🎯 Projects and Interview3 topics

A capstone project, troubleshooting playbook and Ansible interview scenarios.

1Ansible Capstone Project: Deploy a Three-Tier Web Application with Roles, Vault, Rolling Updates and TestsBuild and deploy a complete production-style application with Ansible, in the spirit of the book's end-to-end Mezzanine deployment chapters. Covers requirements, repository layout, inventories, roles for common, PostgreSQL, the Python application with gunicorn and systemd, nginx with TLS, secrets in Vault, a rolling deploy playbook with health checks and rollback, Molecule tests, CI, verification and a stretch-goals list.Advanced · 60 min🔒 Paid2Troubleshooting Ansible: A Systematic Method for Connection, Variable, Module, Performance and Idempotence FailuresDiagnose failing Ansible runs quickly and confidently. Covers a layered troubleshooting method, reading output and verbosity levels, connection and authentication problems, privilege escalation, Python interpreter and module failures, variable and templating errors, inventory and limit surprises, handlers and idempotence issues, performance and hangs, debugging tools (debug, assert, the debugger, check mode, ANSIBLE_DEBUG), and a catalogue of common errors with causes and fixes.Intermediate · 28 minFREE3Ansible Interview Scenarios: Questions, Troubleshooting Cases and Design Problems with Model AnswersPrepare for Ansible interviews with realistic questions and scenarios. Covers fundamentals, idempotency, variables and precedence, roles, error handling, security and Vault, performance, rolling deployments, testing, and design questions, with the reasoning interviewers want to hear and a structure for answering.Intermediate · 34 minFREE
Start here · no payment needed

Start free with Ansible

Understand how Ansible works, build a practice lab and write your first playbooks, no experience needed.

  1. 1What Is Ansible? Agentless Automation, Idempotency and How It WorksUnderstand the problem Ansible solves, how its agentless architecture works, what really happens when a task runs, why idempotency changes everything, and how Ansible compares with shell scripts, Terraform, Puppet and Chef. Includes your first ad hoc command and playbook. · 24 min
  2. 2Install Ansible and Build a Free Practice Lab with Docker and SSHSet up a professional Ansible workstation with pipx or uv, configure ansible.cfg, create SSH keys, and build a three-server practice lab with Docker Compose in minutes. Includes an inventory, connection tests, a troubleshooting table and the project layout used in the rest of the course. · 25 min
  3. 3Troubleshooting Ansible: A Systematic Method for Connection, Variable, Module, Performance and Idempotence FailuresDiagnose failing Ansible runs quickly and confidently. Covers a layered troubleshooting method, reading output and verbosity levels, connection and authentication problems, privilege escalation, Python interpreter and module failures, variable and templating errors, inventory and limit surprises, handlers and idempotence issues, performance and hangs, debugging tools (debug, assert, the debugger, check mode, ANSIBLE_DEBUG), and a catalogue of common errors with causes and fixes. · 28 min
  4. 4Ansible Interview Scenarios: Questions, Troubleshooting Cases and Design Problems with Model AnswersPrepare for Ansible interviews with realistic questions and scenarios. Covers fundamentals, idempotency, variables and precedence, roles, error handling, security and Vault, performance, rolling deployments, testing, and design questions, with the reasoning interviewers want to hear and a structure for answering. · 34 min
Create a free account to track progress

Learn it. Practise it. Prove it.

Questions, answered

Do I need servers?

No. You will build a free local lab with containers or virtual machines in the first lessons.

Does it cover current Ansible versions?

Yes. It follows current ansible-core behaviour, including the stricter templating and conditionals.

Is it only for Linux?

No. Windows, network devices and cloud platforms are covered too.

Also available