Ansible Tutorials

Ansible provides a systematic approach to learning IT automation and configuration management. Our tutorials cover Ansible playbooks, roles, and modules, suitable for both beginners and experienced DevOps professionals. Through hands - on labs and real - world examples, you'll gain practical experience in automating infrastructure tasks. Our configuration management playground allows you to experiment with Ansible in a simulated environment.

Write and Run Ansible Playbooks

Write and Run Ansible Playbooks

In this lab, you will implement a complete Ansible playbook to deploy an Apache web server on a RHEL system. You will create an inventory file, configure the Ansible environment, write a multi-task playbook to install Apache, deploy a web page, configure the firewall, and test the deployment.
Ansible
Update One Host at a Time

Update One Host at a Time

Inspect two real website backends, then use Ansible to update and health-check one node at a time.
Ansible
Update Both Menus

Update Both Menus

Update two café menus with shared Ansible data while preserving each branch’s hours, specials and local files.
Ansible
Stop a Broken Update

Stop a Broken Update

Recover a website after a real missing-download failure and stop the next Ansible release batch.
Ansible
Remove an Old Key Safely

Remove an Old Key Safely

Revoke one old SSH key with Ansible, verify fresh denial and preserve current access, backup access and existing work.
AnsibleLinux
Connect the Event Pages

Connect the Event Pages

Connect real event pages with inventory-driven Ansible routes and reject inappropriate sources before changing a working entry.
Ansible
Give a Teammate Access

Give a Teammate Access

Create real staff SSH access with reusable Ansible users, directories and public-key grants while preserving existing work.
AnsibleLinux
Move a Service to Another Host

Move a Service to Another Host

Move an event program through Ansible inventory membership while preserving its venue, old source and existing data.
Ansible
Build and Collect the Contact Sheets

Build and Collect the Contact Sheets

Build actual photo contact sheets on two SSH workstations, wait for successful Ansible jobs and collect each source correctly.
Ansible
Create and Apply a Reusable Role

Create and Apply a Reusable Role

Build a simple role with defaults, tasks, and a template, then apply it from a playbook.
Ansible
Debug Variable Precedence Issues

Debug Variable Precedence Issues

Compare all, group, host, and extra variables to understand which value Ansible applies.
Ansible
Configure SSH Keys and Privilege Escalation

Configure SSH Keys and Privilege Escalation

Generate an SSH key, authorize it for a managed user, configure inventory access, and validate become privilege escalation.
LinuxAnsible
Manage Group, Host Variables, and Facts

Manage Group, Host Variables, and Facts

Use group variables, host variables, and gathered facts to render per-host reports.
Ansible
Manage Services with Handlers

Manage Services with Handlers

Deploy a small systemd service with Ansible handlers and verify the service is active and enabled.
Ansible
Handle Failures with Blocks and Rescue

Handle Failures with Blocks and Rescue

Use block, rescue, and always sections to recover from a controlled failure and verify the success path.
Ansible
Install Roles and Content Collections

Install Roles and Content Collections

Install a local role from a requirements file and inspect installed Ansible collection content.
Ansible
Deploy Baseline Files to Managed Nodes

Deploy Baseline Files to Managed Nodes

Deploy baseline files to managed host aliases with group variables, templates, and copy tasks.
Ansible
Prepare an Ansible Project with Git

Prepare an Ansible Project with Git

Create a clean Ansible project workspace, initialize Git, add an inventory, and commit the baseline files.
AnsibleGit
  • Prev
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • ...
  • 21
  • Next