Automation With Ansible Playbooks

Tags: Ansible

Ansible to automate local and cloud configuration management tasks with Playbooks

Last updated 2022-01-10 | 4.5

- Ansible Engine with Ad-hoc commands
- Implementation of Ansible Playbooks from basic level to advanced level
- Ansible Installation and Configuration with directory structure and Architecture

What you'll learn

Ansible Engine with Ad-hoc commands
Implementation of Ansible Playbooks from basic level to advanced level
Ansible Installation and Configuration with directory structure and Architecture
Ansible Ad-hoc commands
Ansible Facts and Variables
Ansible Inventories (Static and Dynamic Inventoryies)
How to work with Mangaed nodes if manged nodes are not installed with Python
Passwrod Authentication setup and explanation
Introduction to Ansible Playbooks
Operations on strings and numbers using Playbooks (Filters and Methods )
Operators to work with tasks
Conditional Statements
loops
tags and handlers
Block module and its usage
Template module variables
conditional statements and loops
Ansible Valut Concept.

* Requirements

* PC or Laptop with internet Connection
* Knowledge to create servers from VMvare/Any Cloud

Description

  • Ansible Engine with Ad-hoc commands
  • Implementation of Ansible Playbooks from basic level to advanced level
  • Ansible Installation and Configuration with directory structure and Architecture
  • Ansible Ad-hoc commands
  • Ansible Facts and Variables
  • Ansible Inventories (Static and Dynamic Inventoryies)
  • How to work with Mangaed nodes if manged nodes are not installed with Python
  • Passwrod Authentication setup and explanation
  • Introduction to Ansible Playbooks
  • Operations on strings and numbers using Playbooks (Filters and Methods )
  • Operators to work with tasks
  • Conditional Statements, loops, tags and handlers
  • Block module and its usage
  • Template module variables, conditional statements and loops
  • Ansible Valut Concept.

Course content

25 sections • 70 lectures

Preview of the course: Automation using Ansible - Step by Step Preview 04:25

Required PPTs for this Ansible Course Preview 00:05

Introduction: Story before Ansible or Any other configuration Management tools Preview 09:46

Ansible Architecture Preview 10:44

Ansible Installation and Configuration Part-1 (Installation ) Preview 12:56

Install Ansible on CentOS-7

Run the following commands from root: (just use sudo su - )

================================

python --version

yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

yum install ansible

ansible --version

cd /etc/ansible/

ls -lrt

Ansible Installation and Configuration Part-2 (Configuration) Preview 43:09

Ansible Directory Structures Preview 20:13

How to disable host key chekcing ? Preview 12:00

Inventory file with Groups and Group of Groups Preview 20:21

Different locations of ansible.cfg file with priority Preview 08:02

you can export ANSIBLE_CONFIG  as below

example:

   export ANSIBLE_CONFIG=/tmp/ansible.cfg


and now if you run ansible it will pic configuration file as /tmp/ansible.cfg (Highest priority is for ANSIBLE_CONFIG file)

Review on Ansible Architecture Preview 06:48

Installing Ansible Engine on RHEL 8 Preview 24:30

Introduction to Ad-hoc commands | Basic syntax for Ansible Ad-hoc commands Preview 22:13

ansible all -m ping

ansible db:web_server -m ping

------------------------------------

ansible db:web_server -m shell -a "uptime"

ansible db:web_server -m shell -a "free -m"

--------------------------------------------

ansible -i prod_inv -m shell -a "uptime"

ansible -i prod_inv -m shell -a "free -m"

------------------------------------------


ansible adhoc command syntax:

-----------------------------

ansible [-i req_inventory_file ]  server_name:group1:group2 -m module [-a argument_value]

How Ansible Works ? (Executing Ad-hoc commands or Playbooks ) Preview 14:37

ANSIBLE_KEEP_REMOTE_FILES=1

keeping forks = 1 in ansible.cfg

Transfer a file from Ansible Engine to Nodes using copy module Preview 17:42

Download a file from Ansible Managed Nodes to Ansible Engine Preview 09:42

Create or Delete a file or dierctory on Managed Nodes Preview 13:52

List of different modules to work with files Preview 01:36

Install a package like git, httpd, mysql, git on Linux Systems using yum module Preview 09:14

Command Module Preview 04:42

Introduction to Ansible Facts Preview 07:59

How to create and work with custom facts ? Preview 28:54

Inventory Types and Working with AWS EC2 Dynamic Inventory Script Preview 24:02

Simple Custom Dynamic Inventory Script creation Preview 16:13

Working with Managed Nodes using a Password | Password Authentication Preview 19:17

Executing Ansible tasks with default and different users on Managed Nodes Preview 13:02

Basic introduction to Ansible variables Preview 21:04

Introduction to Playbooks with task and play concepts Preview 18:40

Writing Simple Playbooks for basic understanding Preview 24:36

Basic Key Points to run Ansible Playbooks Preview 19:51

Print any message (ex: welcome to Playbooks) using playbook ? Preview 19:58

Variable and data types Preview 15:18

Data Structures/ Data Collections Preview 11:41

simple playbook to understand the usage of register and set_fact Preview 13:15

How to read a variable and print using ansible playbook ? Preview 09:22

How to read a variables from yaml/json file ? Preview 07:05

Working with command line arguments Preview 16:46

Working with Gather facts variables or setupt module variables Preview 16:31

working with inventory_hostname and hostvars variables Preview 07:52

Installing and using Visual Studio Code Editor for Ansible Playbooks Preview 10:43

Arithmetic operators on numbers Preview 08:54

simple practice on Arithmetic Operators Preview 13:32

Filters and Methods of Ansible Playbooks Preview 12:35

Comparison operators Preview 07:21

Membership operators and Test Operators Preview 20:30

Logical operators Preview 12:38

Settings for Ubuntu server to consider it as a Managed Node Preview 11:41

How to use when conditional statement ? (Explanation with simple playbook) Preview 21:41

Inline conditional statement Preview 08:49

Working with tags and skip tags Preview 16:20

Java and Tomcat installation and configuration using template module Preview 43:40

Introduction to template module with variables Preview 08:49

Template varaibles, conditional statements and loops Preview 17:17

Github link for playbooks Preview 00:00

Ansible Environment setup for AWS Provisioning Preview 17:06

Launch EC2 Instances with multiple sequrity groups and Tags Preview 19:57

Simple playbooks to start stop and terminate ec2 instances Preview 13:43

Single playbook to start stop and terminate Instance Preview 10:03

EC2 Tags help to start, stop and terminate instances Preview 20:07

Cleanup Tag-less EC2 Instances using Playbooks Preview 10:27

Generate CSV Reprots using ansible Playbooks for ec2 Instances Preview 16:08

Converting a playbook into to Ansible Roles Preview 20:59