Mastering Ansible – Beginner to Advanced Level
This comprehensive course guides you from the fundamental concepts of Ansible to advanced automation techniques. You’ll learn how to leverage Ansible’s powerful features to automate repetitive tasks, ensure consistency across your infrastructure, and deploy applications seamlessly. Through hands-on exercises and real-world scenarios, you’ll gain practical experience in writing Ansible playbooks, managing inventory, handling variables, and integrating Ansible with cloud platforms. By the end of the course, you’ll be equipped with the skills to automate complex workflows and optimize your operations using Ansible.
Course Objective:
Gain expertise in Ansible to simplify configuration management, automate application deployments, and facilitate infrastructure provisioning in cloud environments.Course Prerequisite:
Prior familiarity with Linux operating systems, basic Linux commands, Bash scripting, and YAML syntax is recommended to maximize your learning experience.Target Audience:
This course is designed for System Engineers, System Administrators, DevOps engineers, or beginners looking to enhance their automation skills and streamline infrastructure management using Ansible. Whether you’re a novice or an experienced professional, this course provides valuable insights and practical knowledge to propel your automation journey forward.Course Summary
Course Fee
৳ 15,000
Training Method
Online
Total Modules
15
Course Duration
40 Hours
Total Session
20
Class Duration
2 Hours
Details Course Outlines
Module-01
Introduction to Ansible
- What is Ansible?
- Why do we require Ansible?
- Ansible Architecture
- How Ansible works?
- Benefits of using Ansible
- Push Based VS Pull Based approach
Module-02
Installation & Configuration
- Install and configure Ansible control node
- Ansible configuration files
- Configure nodes with passwordless authentication
- Create and update inventory file
- Creating Inventory Groups
- Hands on Lab 01
Module-03
Ansible command line tool
- Ansible common terms
- Ansible ad-hoc commands
- Why use ad hoc commands?
- Use cases for ad hoc tasks
- How to execute ad-hoc commands.
- Ad-hoc command syntax
- Hands on Lab 02
Module-04
Ansible Modules
- What is Ansible Module
- List of Ansible Modules
- Ansible commands using different modules
- Overview of YAML syntax
- Hands on Lab 03
Module-05
Ansible Playbooks
- What is Ansible Playbooks
- How to write Playbooks
- Various example of Playbooks
- Executing Playbooks
- Hands on Lab 04
Module-06
Variables and Facts
- Using variables
- Creating valid variable names
- Different types of variables
- Applying Variables to Groups and Hosts
- Variable Scope
- Using Variables to Control Tasks
- Ansible Facts
- Hands on Lab 05
Module-07
Script and Shell module
- Execute shell commands on targets
- Writing a bash script
- Runs a local script on a remote nodes
- Install PHP and Apache2 server on a remote node using the Script Module
- Run a Python script on a remote node using the Script Module
- Hands on Lab 06
Module-08
Condition and looping
- What is looping in Ansible?
- What is the condition in Ansible?
- How to use condition and looping in Playbooks
- Ansible tags
- Hands on Lab 07
Module-09
Ansible vault
- Ansible Vault Purpose
- Encrypt and Decrypt Files
- Create Vault Password Files
- Encrypting existing files
- Viewing encrypted files
- Editing encrypted files
- Hands on Lab 08
Module-10
Error Handling
- Tasks and Handler in Playbooks
- Handling errors in Ansible
- Ignoring failed commands
- Ignoring unreachable host errors
- Aborting a play on all hosts
- Hands on Lab 09
Module-11
File separation & Special variables
- Ansible File Separation
- Special Variables
- Magic Variables
- List of magic variables
- Connection Variables
- Hands on Lab 10
Module-12
Ansible Roles
- Create and Use Roles
- Getting Roles from Ansible Galaxy
- Using Role Handlers, Files, and Templates
- Hands on Lab 11
Module-13
Ansible with docker container
- Build Docker image using Ansible ad hoc command
- Run Docker Container using Ansible ad hoc command
- Build and Run Docker container using Playbook
- Modify container configuration using Playbook
- Ansible Docker Connector
- Hands on Lab 12
Module-14
Ansible for provisioning Infrastructure
- Launch instances in AWS Cloud and install Ansible
- Create IAM Role, SSH Key Pair, attached with Node
- Write Playbooks for launching instances.
- Write Playbooks to start and stop instances.
- Hands on Lab 13
Module-15
Application deployment with Ansible
- Hands on Lab 15: Demo CICD with jenkins, Ansible, Docker and github