Fast-Ansible: Ansible Tutorial, Sample Usage Scenarios (Howto: Hands-on LAB)
I want to share the Ansible tutorial, cheat sheet, and usage scenarios that I created as a notebook for myself. I know that Ansible is a detailed topic to learn in a short term, so I gathered useful information and create sample general usage scenarios of Ansible.
This repo covers Ansible with HowTo: Hands-on LABs (using Multipass: Ubuntu Lightweight VMs): Ad-Hoc Commands, Modules, Playbooks, Tags, Managing Files and Servers, Users, Roles, Handlers, Host Variables, Templates, and many details. Possible usage scenarios are aimed to update over time.
Tutorial Link: https://github.com/omerbsezer/Fast-Ansible
Extra Kubernetes-Tutorial Link: https://github.com/omerbsezer/Fast-Kubernetes
Extra Docker-Tutorial Link: https://github.com/omerbsezer/Fast-Docker
Quick Look (HowTo): Scenarios - Hands-on LABs
- LAB: Multipass-SSH Configuration (Create Ansible Test Environment)
- LAB: Install Ansible and Test Basic Ansible (Ad-Hoc) Commands
- LAB: Implement First Playbook
- LAB: Playing Docker Module
- LAB: Important (Mostly Possible Used) Modules Sample Tasks
- LAB: Refactoring / Improving Playbook
- LAB: Targeting Specific Nodes (Grouping)
- LAB: Adding Tags
- LAB: Managing Files
- LAB: Managing Services
- LAB: Adding Users
- LAB: Roles
- LAB: Host Variables
- LAB: Handlers
- LAB: Templates
Table of Contents
- Motivation
- What is Ansible?
- How Ansible Works?
- Creating LAB Environment
- Ansible Basic (Ad-Hoc) Commands
- Ansible Modules
- Ansible Playbooks
- Inventory File - Targeting Specific Nodes
- Tags
- Managing Files
- Managing Services
- Adding Users
- Roles
- Host Variables
- Handlers
- Templates
- Debugging
- Details
- Other Useful Resources Related Ansible
- References
22 comments · 99% upvoted · other discussions
What does LAB/LABs stand for? I couldn’t find anything on Google and I’m not sure if this is repeated random capitalization of “lab” or something else.
myersjustinc 1 points · Nov 2022
Thank you. I was wondering whether it was some sort of Lightweight Ansible Bundle or something else of the sort.
(Reminds me of that slide that made the rounds some time ago with language/library/stack names mixed in with Pokémon—seriously, can't take any of these things for granted…)
[deleted] 1 points · Nov 2022
Yeah. Given the prolific nature of acronyms in tech i wasn’t sure if this was one or an improper way of abbreviating the word laboratory. this is a learning environment so it’s entirely possible there’s something I missed.