Ansible Training

Introduction

                   Ansible combines configuration management, orchestration, and parallel command execution into a single tool. Its batteries-included approach and built-in module library makes it easy to integrate it with cloud platforms, databases, and notification services without requiring additional plugins.

 

Playbooks in Ansible define the policies your systems under management enforce. They facilitate effective configuration management rather than running ad hoc scripts to deploy complex applications.

 

This Course will show you how to write a blueprint of your infrastructure encompassing multi-tier applications using Ansible’s playbooks. Beginning with the basic concepts such as plays, tasks, handlers, inventory, and the YAML syntax that Ansible uses, you will see how to organize your code into a modular structure.

 

Building on this, you will master techniques to create data-driven playbooks with variables, templates, logical constructs, and encrypted data. This Course will also take you through advanced clustering concepts such as discovering topology information, managing multiple environments, and orchestration.

 

By the end of this Course, you will be able to design solutions to your automation and orchestration problems using playbooks quickly and efficiently.

 

What You Will Learn

 

  • Write simple tasks and plays
  • Organize code into a reusable, modular structure
  • Separate code from data using variables and Jinja2 templates
  • Run custom commands and scripts using Ansible’s command modules
  • Control execution flow based on conditionals
  • Integrate nodes and discover topology information about other nodes in the cluster
  • Encrypt data with ansible-vault
  • Create environments with isolated configurations to match application development workflow
  • Orchestrate infrastructure and deploy applications in a coordinated manner

 

 

Ansible Training

 

Course Outline

1. Blueprinting Your Infrastructure

Getting introduced to Ansible
Plays

Our first playbook
Creating a host inventory
Patterns
Tasks
Running the playbook

 

2. Going Modular with Ansible Roles

Understanding roles
Naming roles
The directory layout for roles
Creating a site-wide playbook, nesting, and using include statements
Creating the www playbook
Creating a base role
Creating an Nginx role
Automating events and actions with handlers
Adding pre-tasks and post-tasks to playbooks
Running playbooks with roles

 

3. Separating Code and Data – Variables, Facts, and Templates

Static content explosion
Separating code and data
Jinja2 templates
Facts and variables
Templating the Nginx configurations

Adding another layer – the MySQL role
Creating the scaffolding for the roles with Ansible-Galaxy
Adding metadata to the role
Using variables in tasks and handlers
Using variables in playbooks
Applying a MySQL role to the DB servers
Variable precedence
The best practices for variable usage

 

4. Bringing In Your Code – Custom Commands and Scripts

The command modules

Deploying a WordPress application – a hands-on approach
Installing WordPress
Configuring WordPress

 

5. Controlling Execution Flow – Conditionals

The conditional control structure
Refactoring the MySQL role
Conditional control structure in Jinja2 templates
Running a task only once
Executing roles conditionally

 

6. Iterative Control Structures – Loops

The omnipotent with statement
Configuring WordPress requisites
The PHP5-FPM role
Creating MySQL databases and user accounts
Creating Nginx virtual hosts

 

7. Node Discovery and Clustering

Node discovery with magic variables
Creating the load balancer role
Accessing facts for non-playbook hosts

 

8. Encrypting Data with Vault

Ansible-vault
Using the Ansible-vault
Encrypting the database credentials
Using a password file
Adding the vault password file option to the Ansible configuration

 

9. Managing Environments

Approaches for managing environments
Creating a development environment

 

10. Orchestrating Infrastructure with Ansible

Ansible as an orchestrator
Tagging the roles
Creating an orchestration playbook for WordPress

 

 

Ansible Training Chennai

 

info@bigdatatraining.in

http://www.bigdatatraining.in/contact/

Call – +91 97899 68765 / 044 – 42645495

 

Weekdays / Fast Track / Weekends / Corporate Training modes available

 

Ansible Training Also available across India in Bangalore, Pune, Hyderabad, Mumbai, Kolkata, Ahmedabad, Delhi, Gurgon, Noida, Kochin, Tirvandram, Goa, Vizag, Mysore,Coimbatore, Madurai, Trichy, Guwahati

On-Demand Fast track Ansible Training globally available also at Singapore, Dubai, Malaysia, London, San Jose, Beijing, Shenzhen, Shanghai, Ho Chi Minh City, Boston, Wuhan, San Francisco, Chongqing.