
Explore Ansible from basics to advanced topics, writing playbooks, using collections, roles, and Jinja templates, and managing Ansible AWX through a web interface.
Explore the course structure, learn Ansible from basics to advanced topics including AWX, and follow along with practical exercises and downloadable demo playbooks and GitHub repositories.
Learn how Ansible, an open-source automation tool, uses a central control node to manage Linux, Windows, and network devices via SSH or WinRM, using YAML playbooks and inventory files.
Ansible enables scalable automation across Linux, Windows, and network devices by using playbooks to roll out configurations with a single command, without agents, and under version control.
Provision Ubuntu-based VMs with a single command using multipath across Linux, Windows, and macOS; explore Docker images, manage VMs with IP or shell, and clean up with delete and purge.
Install multipass on Windows to provision Ubuntu VMs with a single command, covering prerequisites, Hyper-V versus VirtualBox, path setup, restart, and testing with multipass launch.
Install and set up the Ansible control node on a Unix-like system. Use multipass to create a dedicated virtual machine and manage nodes, servers, and network devices with playbooks.
Prepare Linux hosts for Ansible by creating two Ubuntu managed nodes with Multipass, then enable SSH key authentication using ed25519 keys and authorized keys so Ansible can manage the nodes.
Test connectivity between ansible and linux hosts by creating an inventory file, configuring ssh key authentication on the control node, and validating with the ping module.
Create and run your first Ansible playbook to upgrade Ubuntu systems using the apt module, with become for sudo privileges and VS Code remote SSH for editing.
Automate cross-distribution package management with the Ansible package module, which auto-detects the distro and installs, upgrades, or removes packages using the correct manager (apt, yum, or dnf).
Learn to manage linux files with ansible using the file, line-in-file, and block-in-file modules to create, modify, and validate contents with regex, while ensuring idempotent configurations and configuring apache.
Explore how to use Ansible's command and shell modules to run commands on Linux hosts. Compare their behavior and emphasize preferring built-in modules for idempotent, readable playbooks.
Master Ansible user and group management by creating users, assigning shells and groups, hashing passwords, deploying across servers, and distributing SSH keys with the authorized_keys module in practical playbooks.
Learn how to manage Linux services with the Ansible service module, supporting multiple init systems, starting, stopping, reloading, enabling on boot, and managing configurations (e.g., unattended-upgrades) via playbooks.
Learn to deploy nginx with ansible by installing nginx via the package module, copying index.html to the www.html directory, and reloading nginx to verify the demo page.
Define and reference variables in Ansible playbooks with vars and vars files, access them via double curly braces, and use registers to save outputs and work with lists using with_items.
Structure Ansible projects with roles to standardize folders and reuse tasks across file servers, web servers, and Windows clients, as shown in the site.yaml main playbook.
Protect sensitive data in ansible by using ansible vault to encrypt passwords and api keys, encrypting whole playbooks or strings, and decrypting or viewing them at runtime with ask-vault-pass.
Learn to prepare Windows hosts for Ansible using SSH or WinRM, install and configure OpenSSH, set firewall rules, and run a Windows playbook to ping hosts with the WinPing module.
Automate Windows software deployment with the Chocolaty module in Ansible, installing and upgrading packages from the community repo, and roll out apps such as Git and Adobe Reader across hosts.
Discover the Ansible Windows collection and its win-prefixed modules to automate Windows tasks, including hostname changes, registry edits, reboots, and silent software installations like Notepad++.
Automate certificate management on Windows with Ansible using the WinCertificateStore module to import, export, and remove certificates into the trusted root store, including PEM formats.
Apply a Windows administration exercise with Ansible to deploy VLC via MSI using WinCopy, WinPackage, and WinFile, then create a Windows firewall rule allowing ICMP echo requests across all profiles.
Learn how to validate Ansible tasks using check mode to simulate playbooks and diff mode for before-and-after changes, demonstrated on an nginx deployment.
Gain practical tips for debugging Ansible playbooks, using -v to -vvvv verbosity, full tracebacks, the built-in debugger, and the debug module to test and fix errors.
Learn how collections in Ansible organize modules, playbooks, and plugins, including using the built-in Ansible collection and installing via the ansible-galaxy collection install command.
Learn to run only specific tasks in an Ansible playbook using tags and --tags. Use --skip-tags, --list-tags, content and packages tags, and always or never tags for optional tasks.
Master looping in Ansible by using the loop keyword to iterate lists and dictionaries, migrate from with statements, and handle complex cases with dict2items, Jinja2 expressions, and index_var when needed.
Learn to use conditionals in Ansible playbooks with the when keyword, performing tasks based on conditions like testdir existence, using the stat module, and clarifying output with named tasks.
Use the remote ssh extension in Visual Studio Code to connect to a remote system, configure ssh keys, and test Ansible playbooks with Ansible lint in VS Code.
Configure Ansible Lint with YAML config files in project or .config directory, or via -c, and choose profiles from minimal to production while skipping the fully qualified collection name check.
Learn to deploy Linux containers (LXC) with Ansible to run a web app behind a load balancer, configure NGINX and database access, and set up a reusable lab environment.
Configure ansible-lint with local YAML config files or a .config file, adjust profiles from minimal to production, and selectively skip rules like the FQCN check.
Configure pre-commit hooks to run Ansible Lint automatically before every commit, ensuring playbooks meet quality standards and are checked locally via a .precommitconfig.yaml setup.
Practice checking a demo playbook with Ansible Lint and implement its recommendations, including naming plays, using true/false values, and applying the fully qualified collection name.
Learn how to secure Ansible playbooks with Ansible Vault, encrypting sensitive data such as credentials using AES-256, with encryption and decryption workflows and vault password prompts.
Explore credential management in Ansible using AWX, Semaphore UI, and Vault, including machine credentials, SSH keys, passwords, and templates to run playbooks with linked credentials.
Enhance the LXC demo by creating a dedicated Ansible user with SSH key access and sudo rights. Demonstrate password protection with Ansible Vault and key-based authentication across containers.
Leverage an Ansible Galaxy nginx role to install and configure nginx on web containers across multiple distributions, using a compact playbook and a requirements.yaml for reusable automation.
Discover how jinja2 templates generate dynamic html pages with ansible, using the template module to render host-specific hello messages from the hostname variable, and deploy via nginx in containers.
Leverage jinja control structures in ansible templates to generate dynamic html, using for loops and if statements to link web hosts, resolve IP addresses, and apply filters and tests.
Install and configure an nginx load balancer with Ansible to distribute HTTP requests across two web containers using a backend and proxy_pass in a round-robin setup.
Create and reuse ansible roles to organize tasks, handlers, vars, and templates with a standard directory structure, and scaffold them with ansible galaxy init for NGINX load balancer playbooks.
Explore how collections bundle Ansible content into installable units, including modules, plugins, roles, and playbooks, and learn to search, install, and manage them via Ansible Galaxy with dependencies.
Consolidate Ansible dependencies by using a requirements.yaml file to install roles and collections with a single command using the -r option of Ansible Galaxy, even in AWX or automation platform.
Learn to update web containers with Ansible using the serial parameter to update one host at a time, removing and re-adding containers from the load balancer while updating html pages.
Enable pipelining in Ansible to speed up playbooks by reducing network operations, configure globally or per project, and disable the tty requirement in sudoers.
Learn to use Ansible pull mode to fetch and run a playbook from a Git repository on the target host, enabling unattended automation with SSH key authentication.
Use ansible dynamic inventory with inventory plugins like Proxmox to auto-discover hosts, configure a yaml file, and query with -i for scalable environments.
Increase debugging detail in Ansible by using the -v option and chaining multiple v's on the playbook command, revealing task arguments, target system details, and validation info for troubleshooting.
Learn how to simulate running Ansible playbooks with check mode and diff mode, seeing before-and-after changes without altering targets, and apply per-task or playbook level control.
Learn how to redirect Ansible output and errors to external files using ansible.cfg, enabling automated runs and better traceability, with a practical HAProxy playbook example.
Master the nolog parameter in ansible to prevent passwords and API keys from appearing in logs or command outputs, while balancing debugging needs across tasks and plays.
Learn to use the Ansible debugger to troubleshoot and fix errors during playbook execution, activate per task or playbook, and make live adjustments without rewriting code.
Apply troubleshooting and debugging in Ansible by deliberately causing an error, logging it to an external file, increasing verbosity, and fixing the issue live with the debugger across two hosts.
Discover how the Ansible validate parameter checks configuration files before transfer, with nginx validation as a practical example across copy, template, line, and file modules to ensure automation quality.
Learn to validate Ansible automations with the assert module and the failed_when parameter, test http responses using the uri module, and verify nginx installation with clear success and fail messages.
Explore how Ansible runs via web interfaces with Semaphore UI and AWX, upstream project for Red Hat Ansible Automation Platform, enabling scheduled playbook execution, centralized login, traceability, and encrypted credentials.
Explore Ansible AWX from installation to operation, including Kubernetes and the AWX operator, GitHub repositories, inventories, job templates, credentials, workflows, and API automation.
Demonstrate Semaphore UI as a flexible web interface for Ansible and other tools, with Docker, binary, or Snap installation, repositories, inventories, credentials, and scheduled playbook runs.
Centralize automation with Ansible AWX, a web-based hub to manage playbooks, inventories, and jobs. Enable workflows, scheduling, and notifications via the API for automated job runs and system integrations.
Learn to install Ansible AWX via the AWX operator on a Kubernetes cluster, using a local K3S setup, deploying AWX components, and securing the site with a self-signed certificate.
Access the official documentation for Ansible AWX and the automation controller via the help menu. Explore user management, execution environments, projects, and job templates.
Explore core Ansible AWX terminology by linking playbooks to a project, synchronizing from Git repositories, and using job and workflow templates to run inventory.
Access the public GitHub repository to quick-start AWX by linking it to a version control system; AWX pulls and executes playbooks, and you can also host your own repository.
*This course contains the use of artificial intelligence.
Welcome to the "Ansible Masterclass – From Beginner to Expert"!
Are you a Sysadmin, DevOps Engineer or a Software Developer? Do you want to automate repetitive tasks, reduce errors, and build scalable, maintainable infrastructure? Then this course is exactly right for you.
This masterclass combines three learning paths into one comprehensive course: beginner fundamentals, advanced Ansible techniques, and enterprise-grade automation with Ansible AWX. We guide you step by step from your first playbook to complex, real-world automation scenarios.
We focus on practical learning. No dry theory, no endless slides – everything is demonstrated directly on real systems with hands-on examples that you can follow along.
What you will learn:
Understanding Ansible concepts such as Configuration Management and Infrastructure as Code
Setting up your own Ansible lab environment and control node
Automating Linux and Windows systems using playbooks
Structuring projects efficiently using roles and collections
Using Jinja2 templates for dynamic configurations
Debugging, troubleshooting, and optimizing playbooks
Securing sensitive data with Ansible Vault
Improving code quality with tools like ansible-lint
Working with web-based interfaces such as Ansible AWX
Implementing Role-Based Access Control (RBAC) and workflows
Scheduling jobs and integrating automation via REST APIs
Managing automation in enterprise environments with centralized logging and control
Throughout the course, you will work on practical examples such as deploying services, managing configurations, and building automated workflows. This ensures that you not only understand the concepts but can also apply them directly in real-world scenarios.
By the end of this course, you will be able to use Ansible confidently – from simple automation tasks to complex enterprise setups using AWX and best practices.
Take the opportunity to build a strong and practical foundation in IT automation.
Enroll now and take your Ansible skills to the next level.