
Learn to install and use Ansible across Linux distributions, manage inventory and groups, run ad hoc commands, write playbooks and roles, and deploy a two-tier application with HAProxy and Nginx.
Meet your instructor Alexandra Cohen, a nearly 20-year engineer and former system administrator. She leads on-prem and cloud projects with AWS, VMware, Google Cloud, Microsoft tech, Terraform, and Ansible.
Discover how Ansible automates configuration management, application deployment, and remote job execution as an open source tool, and operates agentless via SSH with only Python on servers.
Install Ansible on Linux across Ubuntu, Amazon Linux, and Red Hat Linux by verifying Python, installing via apt, yum, or pip, and testing connectivity to localhost.
Master the Ansible inventory file by organizing hosts and groups in ini or yaml formats, specify per-host and per-group variables, ranges, and parent-child structures to apply playbooks to groups.
Prepare on-prem or cloud VMs by creating a passwordless sudo user, generating and uploading an SSH key, and establishing passwordless SSH for a load balancer and web servers setup.
Prepare AWS infrastructure by importing the SSH public key as a key pair, create three Ubuntu virtual machines with security groups, and connect to web servers and a load balancer.
Create an inventory file for this course using the previous lesson’s file, configuring two web servers and a load balancer with the same user and ssh key, using ip addresses.
Set up and use an ansible config file to manage inventory, apply commands with -i and group names, verify hosts with ping, and enable Python 3 in the config.
learn how ad hoc commands in Ansible run direct tasks from the terminal without writing a playbook, using modules like ping and shell to target hosts or web servers.
Create and run an Ansible playbook in yaml to install nginx on web servers, use become for sudo, and employ apt, service, and a handler for restarts.
Use the Ansible condition when to run tasks on Debian-like systems, and manage yum vs apt with OS family facts to create universal playbooks across Linux distributions.
Define and use Ansible variables to parameterize package installation, applying names like nginx in playbooks. Manage environment-specific values with inventory groups and variables files for different environments.
Learn how Ansible roles provide a skeleton directory structure to organize tasks, handlers, templates, and variables, enabling reusable, shareable playbooks with an nginx role.
Learn how to use Ansible templates with Jinja2 to generate dynamic files from host variables, add a template task, and deploy a rendered nginx homepage.
Create and deploy a load balancer role with HAProxy using Ansible, updating inventory, templates, handlers, and playbooks to distribute traffic across multiple web servers.
This course will take you through a complete hands-on journey into the world of Ansible, a powerful tool that has revolutionized the IT industry with its automation capabilities. Starting from the very basics, you will gradually build a robust understanding of this automation platform, giving you a solid foundation to execute advanced functionalities.
Using real-world applications, we will delve into how to install and configure critical components of an IT infrastructure, namely the HAProxy Load Balancer and the Nginx web server. This practical knowledge will elevate your understanding about the intricacies involved in managing these systems. To empower you with robust configuration management skills, we will also focus on teaching you how to organize inventory files efficiently and effectively.
To ensure that you garner not just theoretical knowledge but also practical skills, the course includes hands-on labs that simulate real-world scenarios. These labs will provide you with practical experience to better understand and solve complex situations that may arise in a real DevOps environment.
Whether you are an experienced professional looking to enhance your DevOps skills or a newbie venturing into the world of IT automation, this course offers a thorough and engaging learning experience. Come, join us in this learning journey, and revolutionize the way you manage IT infrastructure with the power of automation using Ansible.