Ansible & Ansible-Playbooks For Automation

Posted By: ELK1nG

Ansible & Ansible-Playbooks For Automation
Published 6/2023
MP4 | Video: h264, 1280x720 | Audio: AAC, 44.1 KHz
Language: English | Size: 4.12 GB | Duration: 8h 54m

Learn Ansible with some real-time examples of how to use the most common modules and Ansible Playbooks

What you'll learn

Introduction to Ansible - Difference between Ansible Core & Ansible Community

Ansible Adhoc Commands

Ansible Facts & Creation of Custom Facts

Ansible Playbooks

Ansible Roles

Requirements

Knowledge to provision servers From VMWare or From Any Cloud

Knowledge on Unix/Linux Servers with basic commands

Knowledge on What is SSH connection with remote servers

Knowledge on Difference between password-less and password authentication

Description

The target audience for this course are systems or automation engineers with a few years of experience in managing various parts of infrastructure, including operating systems, application configurations, and deployments.This course also targets anyone who intends to manage systems and application configurations effectively and in an automated way, with the shortest learning curve.What you’ll learnAnsible Controller with Ad-hoc commandsImplementation of Ansible Playbooks from basic level to advanced levelAnsible Installation and Configuration with directory structure and ArchitectureAnsible Ad-hoc commandsAnsible Facts and VariablesAnsible Inventories (Static and Dynamic Inventories)How to work with Managed nodes if managed nodes are not installed with PythonPassword Authentication setup and explanationIntroduction to Ansible PlaybooksOperations on strings and numbers using Playbooks (Filters and Methods )Operators to work with tasksConditional Statements, loops, tags and handlersBlock module and its usageTemplate module variables, conditional statements and loopsAnsible Vault Concept.Are there any course requirements or prerequisites?Provisioning Servers From VMWare or From Any CloudKnowledge on Unix/Linux EnvironmentBasic Commands Usage of vi/vim Commands to Create a File What is SSH Connection with Remote Servers ?Difference between password-less and password authenticationNotes:Basic knowledge on any programming or scripting languageIts good if you have knowledge on python as Ansible is developed with pythonShell Scripting or Python Scripting is mandatory to develop own modules/collectionsWho this course is for:who are looking for a job in Automation using Ansible and Ansible Playbooks

Overview

Section 1: Introduction

Lecture 1 Introduction to Ansible

Lecture 2 Ansible Core Vs Ansible Community

Lecture 3 How Ansible Works ?

Section 2: Environment Setup

Lecture 4 Launching Required Nodes / Servers for Ansible Setup

Lecture 5 Launching Ansible-Controller Nodes - CentOS9 Node From Windows WSL2

Lecture 6 Installing Ansible-Core on CentOS9 with Python Version 3.9.x

Lecture 7 Ansible Configuration to work with Managed Nodes

Lecture 8 Why Ansible Is Called Agentless tool ?

Lecture 9 Creating userId on Ansible Controller and switching to ansadmin from userid

Lecture 10 Simple Ansible Architecture

Section 3: Ad-hoc Commands with Modules

Lecture 11 Introduction to Ansible Ad-hoc Commands with Modules | Commands for Modules

Lecture 12 Ansible Ad-hoc commands to execute any Unix/Linux Commands

Lecture 13 Handling Arguments with quotations

Lecture 14 What is the backend story to execute Ansible Ad-hoc commands ?

Section 4: Ansible Ad-hoc command to work with files

Lecture 15 List of file modules to work with files | file,copy,lineinfile,blockinfile…..

Lecture 16 Ansible Ad-hoc commands with File Module to create a file on Managed Nodes

Lecture 17 Ansible Ad-hoc commands with stat Module

Lecture 18 Ansible Ad-hoc commands with copy module

Lecture 19 Ansible Ad-hoc commands with lineinfile module to append/replace/delete lines

Lecture 20 Ansible Ad-hoc command with fetch module to download from managed nodes

Section 5: Installing Packages on Different OS Families

Lecture 21 Ansible Ad-hoc commands with yum and apt modules to install packages

Section 6: Executing Ansible Ad-hoc Commands on Ansible Controller node or on localhost

Lecture 22 Executing Ansible Ad-hoc Commands on Ansible Controller node itself

Section 7: Understanding the output of Ansible Ad-hoc commands output

Lecture 23 Why Ansible Operations or Tasks are called idempotent ?

Section 8: Executing Ansible Ad-hoc Commands with your userId & password

Lecture 24 Executing Ansible Ad-hoc commands with your real-time userId and password

Section 9: Ansible Inventory File(s)

Lecture 25 Inventory File(s) to work with multiple Environments

Lecture 26 Types of Ansible Inventory Files

Section 10: Ansible Configuration File(s)

Lecture 27 Multiple Locations of Ansible Configuration File and their priority

Section 11: Shell Scripts with Ansible Ad-hoc Commands

Lecture 28 How to use Ansible Ad-hoc Commands in Shell Scripts

Section 12: Ansible Facts

Lecture 29 Ansible Default Facts with setup module

Lecture 30 How to create Custom Facts based on requirement

Section 13: Introduction to Playbooks

Lecture 31 Introduction to Playbooks and Why we need playbooks ?

Lecture 32 How to use Visual Studio Code Editor to develop Ansible Playbooks

Lecture 33 First Playbook

Lecture 34 Executing Playbooks on Ansible Controller node itself

Lecture 35 Commands to verify the Playbook syntax

Section 14: Basic Concepts to Develop Playbooks

Lecture 36 Introduction to Ansible Custom Variables

Lecture 37 Data Types of Variables

Lecture 38 Data Structures of YAML Scripting

Lecture 39 Read Variable Values from a file

Lecture 40 Passing Variable(s) Value(s) From Command-line

Lecture 41 6. Usage of vars_prompt section in playbooks

Lecture 42 Debug module with vars and msg arguments

Section 15: Registered & setfacts Variables

Lecture 43 Ansible Register Variable - To capture the output of a task into variable

Lecture 44 Ansible Set Fact Variables - Define or Redefine Variable(s) in between the tasks

Section 16: Operations on Variables

Lecture 45 Types of operators | Operations on Variables

Lecture 46 Arithmetic Operators

Lecture 47 Filters & Methods usage to manipulate data - variable data or direct data

Lecture 48 Comparison Operators | equal, not-equal, greater, lesser etc…

Lecture 49 Membership operators

Lecture 50 Logical Operators

Lecture 51 Test Operators

Lecture 52 Operations on list or sequence

Lecture 53 Operations on Strings

Lecture 54 Operations on dictionaries or maps

Lecture 55 Points to remember

Section 17: Conditional Statements

Lecture 56 Conditional Statement with when

Lecture 57 In-line Conditional Statement with if-else

Section 18: Ansible Playbooks to Practice on Basic concepts

Lecture 58 Design Simple Arithmetic Calculator

Lecture 59 Simple Playbook to Find the Python Version

Lecture 60 Playbook to find the java version

Lecture 61 Playbook to execute any command

Section 19: Ansible Facts (Default Facts) & Systemd Facts

Lecture 62 Working with Ansible Facts (Default Facts) using Playbooks

Lecture 63 Service or Systemd Facts with service_facts module

Lecture 64 inventory_hostname & hostvars

Section 20: Usage of become & become_user

Lecture 65 Usage of become, become_user and become_method

Section 21: Installing Packages | Task Re-usability with import_tasks & include_tasks

Lecture 66 Installing Given Package Based on OS Family

Lecture 67 Install a Package Based Managed Nodes Package Managers

Lecture 68 Write a Playbook to install any package(s) ?

Lecture 69 How to re-use Ansible-Tasks with import_tasks and include_tasks ?

Section 22: Handlers

Lecture 70 How to use Handlers ? & When Handlers Executes ?

Section 23: Usage of Tags to execute required tasks

Lecture 71 How to use tags to execute tasks ?

Section 24: Error Handling

Lecture 72 Error Handling | Part-1

Lecture 73 Error Handling with block and rescue and also grouping multiple tasks | Part-2

Section 25: Simple Real Time Ansible Playbook

Lecture 74 Simple Real-Time Ansible Playbook with the combination of tags, block & handlers

Section 26: Loops For Ansible Playbooks

Lecture 75 Introduction to loops

Lecture 76 loops to work with list

Lecture 77 Installing multiple packages with loops

Lecture 78 Loops to work dictionaries

Section 27: Working with Templates

Lecture 79 Introduction to template module

Lecture 80 Template file with Variables, conditions and loops

Section 28: Introduction to Plugin

Lecture 81 What is an Ansible Plugin and How to list required Plugins ?

Section 29: Working with third party or ansible community collections or modules

Lecture 82 Installing required collections or required module from required namespace

Section 30: Ansible Dynamic Inventory with Plugins

Lecture 83 Ansible Dynamic Inventory for AWS with Plugin

Lecture 84 Ansible Dynamic Inventory and Working with managed nodes using default ec2-us

Section 31: Ansible Roles

Lecture 85 Introduction to Ansible Roles

who are looking for a job in Automation using Ansible and Ansible Playbooks