Online Ansible Playground

Practice Ansible automation online. Check an inventory, run a local connectivity check, and learn how modules turn administration tasks into repeatable actions.

  • Free online practice
  • Real LabEx environments
  • No installation
  • Inventory
  • Ad hoc modules
  • Playbooks
Learn Ansible

Ansible Terminal· Ready

Welcome to the LabEx Ansible Terminal. Press Enter to run your first command. Type help for session commands.
Commands run locally in your browser.

Start here

Quick Start with Ansible Playground

Load a task into the terminal, then press Enter to see the result. Each example works in the introductory session on this page.

Check connectivity

Run the ping module against the sample local inventory host.

ansible localhost -m ping

Read the inventory

The sample inventory contains localhost with a local connection.

cat inventory.ini

List inventory hosts

Check which host the sample inventory selects.

ansible all --list-hosts

Inspect inventory variables

View the sample inventory as JSON.

ansible-inventory -i inventory.ini --list

Run an ad hoc command

Ask the training host which user runs its commands.

ansible localhost -m command -a "whoami"

Gather system facts

Read a focused subset of the sample host facts.

ansible localhost -m setup -a "filter=ansible_distribution"

Read a playbook

Inspect the bundled debug playbook before running it.

cat playbook.yml

Check playbook syntax

Validate the included introductory playbook.

ansible-playbook --syntax-check playbook.yml

No setup needed

How the Ansible Playground Works

Practice Ansible automation online. Check an inventory, run a local connectivity check, and learn how modules turn administration tasks into repeatable actions.

Start with the short command exercises above. When you are ready for a project, open the linked LabEx lab to work with real tools in an online Linux environment, with step-by-step guidance and immediate feedback.

Build practical Ansible skills

  • Inventory
  • Ad hoc modules
  • Playbooks
Explore Ansible Labs

Keep learning

Learn Ansible with Hands-On Labs

Build on your Ansible experiments with a structured skill tree. Explore the skills, choose a guided lab, and practice each concept in an online environment.

Online Ansible Playground FAQ

What can I automate with Ansible?

Learn inventories, modules, playbooks, and repeatable configuration tasks. Launch the linked lab to install or configure Ansible and practice against its supplied hosts.

Is the Ansible Playground free?

The introductory exercises are free. Sign in for a complete LabEx environment; session duration and resources depend on your lab and plan.

Do I need to install software?

No local installation is required. Sign in and open the lab in a modern browser. Follow the lab instructions to configure software inside the environment.

Where can I use more commands and features?

This preview supports a limited command set. Sign in and launch the Ansible lab for more commands, packages and services. Available software and permissions depend on the selected lab.

How do I continue learning Ansible?

Follow the Ansible Skill Tree for guided labs and challenges. Practice regularly, inspect command output and ask Labby for help.

Your next step

Ready to practice Ansible?

Continue with real tools, guided labs, and Labby assistance.

Try LabEx Ansible Labs