Ansible Hands On Practice
Learn Ansible by doing; we have a 30 Days of Ansible challenge by which you can watch the video and do hands-on from your own lab setup. The playlist contains videos to prepare your own lab using Vagrant, VirtualBox or using Public Cloud such as AWS or GCP).
Also check Ansible guides to learn the core concepts.
Create Ansible Lab
- Build lab for practicing Ansible
- How to create a free Ansible lab in public cloud
- Use Terraform to create a free Ansible lab in AWS
Learn Ansible Concepts
We have a free course to learn Ansible and you can watch it at your own free time. All the playbooks and configurations are found in this GitHub Repo.
- If you are looking for other courses, check portals such as Udemy or KodeKloud.
- If you are planning for Ansible certification RHCE (EX294 - Ansible), then it is highly recommended to attend Red Hat course RH294 and DO447 - Advanced Automation: Ansible Best Practices (and EX447 Exam)
Practice Ansible
These are few use cases which you can try at your own environment for practicing Ansible. Try to do it by yourself (by searching on internet or using documentations) and refer to the links for quick help.
Operating System
- Package installation - Create Ansible playbook to deploy multiple packages to Linux machine; create Ansible role and the package list should be able to pass to the role.
- Linux OS patching - Create Ansible playbook content to execute OS patching for Linux machines (choose your own flavor of Linux).
- Bash Configuration - Configure
~/.bashrc
using Ansible motd
andetcd
configuration - Confgure OS files using Ansible. Use Jinja2 template,lineinfile
orblockinfile
modules as needed.
Infrastructure Management
- Public Coud (AWS, GCP, Azure) - Develop Ansible content to create/delete AWS resources such as ec2, load balancers, disks, databases, keypairs, security groups, vpc etc. Check Ansible for Infrastructure Provisioning in AWS for references.
- Private Cloud - Develop Ansible content to create and manage private cloud resources (VMWare, OpenStack etc).
Extra
- Ansible Collection - Download and use Ansible collections from Ansible Galaxy. Refer Getting Started with Ansible Collections
- Email - Send an email using Ansible (Use Gmail or your own SMTP server). Refer How to send email using Ansible and Gmail
References
- Ansible Workshops - Training Course for Ansible Automation Platform
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.