Check connectivity
Run the ping module against the sample local inventory host.
ansible localhost -m pingPractice Ansible automation online. Check an inventory, run a local connectivity check, and learn how modules turn administration tasks into repeatable actions.
Start here
Load a task into the terminal, then press Enter to see the result. Each example works in the introductory session on this page.
Run the ping module against the sample local inventory host.
ansible localhost -m pingThe sample inventory contains localhost with a local connection.
cat inventory.iniCheck which host the sample inventory selects.
ansible all --list-hostsView the sample inventory as JSON.
ansible-inventory -i inventory.ini --listAsk the training host which user runs its commands.
ansible localhost -m command -a "whoami"Read a focused subset of the sample host facts.
ansible localhost -m setup -a "filter=ansible_distribution"Inspect the bundled debug playbook before running it.
cat playbook.ymlValidate the included introductory playbook.
ansible-playbook --syntax-check playbook.ymlNo setup needed
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.
Keep learning
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.
Learn inventories, modules, playbooks, and repeatable configuration tasks. Launch the linked lab to install or configure Ansible and practice against its supplied hosts.
The introductory exercises are free. Sign in for a complete LabEx environment; session duration and resources depend on your lab and plan.
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.
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.
Follow the Ansible Skill Tree for guided labs and challenges. Practice regularly, inspect command output and ask Labby for help.
Your next step
Continue with real tools, guided labs, and Labby assistance.