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
Legendary. You are doing the Lord's work with this. Thanks for sharing :)
[deleted] 4 points · Nov 2022
[deleted]
devin_mm 3 points · Nov 2022
Meh they've been around too long and don't understand the new fangled internet. Things were easier back in the day when you could shake someone's hand and look them right in the eye.
CannonPinion 3 points · Nov 2022
And get five bees for a quarter.