Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Udemy

Automation with Ansible Playbooks – Hands-On!

via Udemy

Overview

This course introduces Ansible to beginners and system administrators, helping them enhance their automation skills.

What you'll learn:
  • Introducing Ansible-Overview of Ansible Architecture
  • Implementation of Ansible Playbooks
  • Automate Linux Patching using Ansible
  • Project Labs to gain a better understanding of using Ansible Playbooks for patching Linux servers
  • Managing Variables & Inclusions
  • Various labs on implementing playbooks from a real IT industry environment
  • Gain sufficient skills to perform core system administration Automation
  • Implementing Tasks Controls
  • Ansible Installation
  • Online/Offline Ansible installation
  • Ansible Conditionals
  • Ansible Modules
  • Industrial Live overview of Automation tool using Ansible with Shell Scripting
  • Ansible Handlers/Loops
  • Deploying Ansible and writing Yaml files
  • Students would be able to create Ansible Roles

Mastering Ansible Step by Step


Course Contents


Introducing Ansible

  • Overview of Ansible Architecture

  • Ansible Components

  • Overview of Ansible Deployments

  • Describing Ansible Inventory

  • Summary

Deploying Ansible

  • Installing Ansible

  • Guided Exercise: Installing Ansible

  • Managing Ansible Configuration Files

  • Guided Exercise: Managing Ansible Configuration Files

  • Running Ad Hoc Commands

  • Guided Exercise: Running Ad Hoc Commands

  • Managing Dynamic Inventory

  • Guided Exercise: Managing Dynamic Inventory

  • Lab: Deploying Ansible

  • Summary

Ansible Setup in AWS Environment

  • Introduction to Setting Up Ansible in AWS

  • Launch EC2 Instance for Ansible Control Node

  • Install Ansible on Control Node

  • Setup Managed Hosts: Two Ubuntu Clients

  • Configure SSH on Clients

  • Edit hosts to Add Managed Hosts

  • Generating an SSH Key for Passwordless Access

  • Create a Host Inventory File for Managed Clients

  • Using Ad-Hoc Commands to Test Connectivity

  • Practicing Ad-Hoc Commands in Ansible

  • Understanding the Purpose of --become in Ansible

Ansible Installation on Red Hat Linux 8

  • Overview of Ansible Installation

  • Online Ansible Installation

  • User's Account Setup for Passwordless Authentication

  • Offline Ansible Installation ( When there is no internet available on Control Node )

Implementing Playbooks

  • Writing YAML Files

  • Guided Exercise: Writing YAML Files

  • Implementing Modules

  • Guided Exercise: Implementing Modules

  • Implementing Ansible Playbooks

  • Guided Exercise: Implementing Ansible Playbooks

  • Lab: Implementing Playbooks

  • Summary

Managing Variables and Inclusions

  • Managing Variables

  • Guided Exercise: Managing Variables

  • Managing Facts

  • Guided Exercise: Managing Facts

  • Managing Inclusions

  • Guided Exercise: Managing Inclusions

  • Lab: Managing Variables and Inclusions

Implementing Task Control

  • Constructing Flow Control

  • Guided Exercise: Constructing Flow Control

  • Implementing Handlers

  • Guided Exercise: Implementing Handlers

  • Implementing Tags

  • Guided Exercise: Implementing Tags

  • Handling Errors

  • Guided Exercise: Handling Errors

  • Lab: Implementing Task Control

  • Summary

Ansible Roles

  • About Ansible Roles

  • How do we create Ansible Roles

  • Lab Session to create roles

Industrial project to Automate Patching on Multiple Linux Server using Ansible Playbook

  • Overview about Linux Patching

  • Automate Linux Patching using Ansible

  • Verify application/Database processes are running or not

  • Decision point to start patching

  • Upgrade all the packages on the server

  • Check if reboot required after the kernel update

  • Install the specific kernel version using Ansible Playbook.

  • Various Labs to understand the Ansible Playbook for patching

Industrial project for Stop/Start Control M appl/db

  • Overview of project

  • Designing of Ansible playbooks

  • Lab Sessions

Create Automation tool using Ansible & Shell

  • Overview of Automation Tool

  • Concept of Automation Tool

  • Communication between Ansible Server with managed hosts

  • Front look of Automation Tool

  • What we are achieving from this Automation tool.

  • Pre-validation Configuration (To capture pre-change configuration details)

  • User Administration

1. User Creation
2. User Removal
3. Group Add
4. Password Reset

  • Run Ad Hoc Command

  • Health Check Statistics

1. Memory Utilization
2. CPU Utilization
3. Overall I/O Activities
4. Reports run queue and load average
5. Top Memory Consuming processes
6. Top CPU Consuming Processes
7. Shared Memory

  • Design of Automation Tool

  • Design Front Look using case statement

  • Practice Lab Session on case Statement -1

  • Practice Lab Session on case Statement -2

  • Color Fonts in desinging the tool

  • Headline & Selecting the target servers

  • Lab sessions


  • Shell Scripting

1. If..else..elif statement
2. Loops
3. Sed – Stream Editot
4. Awk

  • The case esac statement

  • Last lecture

Syllabus

  • Introduction
  • Ansible Control Node Components
  • Deploying Ansible in an AWS Cloud Environment
  • Ansible Setup
  • Customizing Ansible's Behavior
  • AD Hoc Commands in Ansible
  • Implementing Playbooks
  • Modules in Ansible
  • Implementing Multi tasks in Playbook
  • Managing Variables in Ansible
  • Implementing Tasks Control in Ansible
  • Ansible Roles
  • Industrial Project - Patching on Linux Servers
  • Industrial Project - Stop/Start Control M Applications
  • Create Automation Tool Using Ansible, Shell

Taught by

Shikhar Verma

Reviews

4.4 rating at Udemy based on 2541 ratings

Start your review of Automation with Ansible Playbooks – Hands-On!

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.