Ansible
Ansible for Automation of Infrastructure and Applications
Tutorials (12)
- Ansible Tutorials
Install Vagrant and VirtualBox: Create Local Virtual Machines as Code
Install VirtualBox and Vagrant, write a Vagrantfile for a multi-VM lab with private networking and provisioning, and use the daily commands to manage it.
- Terraform & OpenTofu Tutorials
Regex in Terraform, Ansible and Prometheus: Functions, Filters and Matchers
Use regular expressions in Terraform regex(), regexall() and replace(), in variable validation, in Ansible regex_search and lineinfile, and in Prometheus label matchers.
- DevOps Tutorials
Cron Expressions with Examples: crontab, Kubernetes CronJob, GitHub Actions and EventBridge
Learn to read and write cron expressions with examples, set up crontab safely with logs and locks, and reuse the syntax in Kubernetes, GitHub Actions and AWS.
- Ansible Tutorials
Install Ansible and Write Your First Playbook: Inventory, Modules and Roles
Install Ansible with pipx, define an inventory, run ad hoc commands, write an idempotent playbook with variables, handlers and templates, and organize it in a role.
- DevOps Tutorials
rsync Tutorial: Copy, Sync and Back Up Files over SSH with Incremental Snapshots
Learn rsync with examples: copy and mirror folders, trailing slashes, excludes, SSH sync, dry runs, bandwidth limits and incremental backups with hard links.
- DevOps Tutorials
Regular Expressions Tutorial with Examples: grep, sed, Python and Cheat Sheet
Learn regex from zero with runnable examples: character classes, quantifiers, groups, anchors, greedy vs lazy matching, and patterns for IPs, versions, ARNs and logs.
- Terraform & OpenTofu Tutorials
Terraform Provisioners and EC2 user_data: When to Use Each (and Alternatives)
How Terraform provisioners (local-exec, remote-exec, file) work, why they are a last resort, and how to use EC2 user_data, cloud-init and Ansible instead.
- AWS Tutorials
How to use Terraform, AWS, and Ansible Together
How to use Terraform to create AWS infrastructure with tags, and Ansible with its dynamic inventory plugin to configure the servers, linked by the tags.
- Ansible Tutorials
How to Install Ansible
How to install the Ansible control node on Ubuntu with apt or pipx, and check that Ansible works.
- Kubernetes Tutorials
Kubernetes Cluster using Vagrant and Ansible with Containerd (in 3 minutes)
Tutorial and full source code explaining how to create a Kubernetes cluster with Ansible and Vagrant for local development under 3 minutes.
- Kubernetes Tutorials
Installing Istio on Kubernetes
How to install Istio in a Kubernetes Cluster to use it as a service mesh for a microservices architecture.
- AWS Tutorials
AWS VPC, Route 53, RDS MariaDB, EC2 using Ansible and Terraform (1/5)
Tutorial and source code explaining how to provision and configure a VPC, Route 53, RDS MariaDB, Instances and security groups using Ansible and Terraform…
Best practices (3)
- Ansible Best Practices
Ansible Multiple Environment Best Practices
Handling multiple infrastructure environments with Ansible by targeting the environment tag that is included in the mandatory AWS tags
- Ansible Best Practices
Ansible Roles Best Practices
How granular Ansible roles should be: highly reusable by configuration, but pragmatic for stateful applications that are not cloud native.
- Ansible Best Practices
Ansible Playbook Structure Best Practices
Define and apply a company-wide consistent structure for all your Ansible Playbooks that allows for easy understanding and maximum reuse
Glossary and related tools (12)
Networking and Delivery
NGINX
NGINX is a fast web server, reverse proxy and load balancer used to serve sites and route traffic to applications.
Operating Systems and Virtualization
VirtualBox
VirtualBox is a free, open source hypervisor from Oracle that runs virtual machines on a desktop or laptop.
Configuration and Automation
Vagrant
Vagrant is a HashiCorp tool that creates reproducible local virtual machines from a Vagrantfile, usually on VirtualBox.
- Operating Systems and Virtualization
Cron
Cron is the Unix scheduler that runs commands at fixed times, defined with five-field cron expressions in a crontab file, also used by Kubernetes and AWS.
Configuration and Automation
Ansible
Ansible is an agentless automation tool that configures servers and deploys applications over SSH using YAML playbooks.
- Data and Storage
rsync
rsync is a command line tool that copies and synchronizes files locally or over SSH, sending only the differences between source and destination.
- Concepts and Practices
Regular Expressions (Regex)
A regular expression is a pattern that matches text. It is used to search, validate and replace text in code, command line tools and infrastructure files.
Operating Systems and Virtualization
Ubuntu
Ubuntu is a popular Debian based Linux distribution used on laptops, servers and as the base of many cloud and container images.
Operating Systems and Virtualization
SSH
SSH, which stands for Secure Shell, is a cryptographic network protocol that allows for secure communication and data transfer between two computers over an…
Configuration and Automation
Ansible Dynamic Inventory
Generate inventory (host and group information) dynamically rather than statically defining it in a static inventory file
Concepts and Practices
IaC
IaC is an approach to managing and provisioning computing infrastructure through machine-readable code and automation, rather than manual processes.
AWS Compute
AWS AMI
AWS AMI, or Amazon Machine Image, is a pre-configured virtual machine image used to create and launch Amazon Elastic Compute Cloud (EC2) instances