Agenda:
Introduction:
- Before Configuration Management
- Introduction to Ansible
- Why Ansible
- Ansible vs other tools
- Idempotent nature of ansible
- Use cases
Ansible Architecture:
Overview of Ansible Architecture
- Playbooks
- Host Inventory
- Ansible Config
- Core Modules
- Custom Modules
- Installing Ansible
- Ansible configuration File
- Ansible inventory file
- Overriding Default Configuration
- Configuring ansible user on target servers
- Install and configure ssh keys for authentication
- Assignment
Ansible Ad-hoc commands:
- Working with ad-hoc commands
- Gathering facts
- Filtering facts data
- Assignment
Key Components of Ansible:
Modules
- What is module
- Commonly used modules
- Run commands
- Documentation
- Assignment
- Default inventory
- Hosts and Groups
- Inventory Sources
- Inventory variables
- Magic variables
- Assignmen
Tasks:
- What is task
- Example tasks
- Modules in play tasks
- Handler tasks
- Assignment
Plays
- What is play
- Play Naming
- Hosts Selection
- Play Arguments
- Variables
- Loops
- Assignment
Playbooks
- What is playbook
- Basic playbook creation
- Tags
- Running with tags
- Registering task results
- Conditionals
- Error Handling
- Aborting the play
- Handlers and Failures
- Assignment
Jinja2 templates
- Control structures
- For Loop
- Variable Filter
- Magic Variables in Templates
- Template Comments
- Including templates in playbooks
- Assignment
Ansible Lookups:
Lookups
- What is lookup
- Types of lookups
- Using lookups in playbooks
- Assignment
Ansible Variables:
Variables
- Command line variables
- Discovered Facts
- Playbook variables
- Scope of variables
- Setup module
- Facts in play
- Include_vars
- Includes and loops
- Assignment
Ansible Roles:
Roles
- Role Definition
- Directory Structure
- Variables
- Dependencies
- Conditional
- Pre and Post Tasks
- Example Roles
- Assignment
Ansible Galaxy and Roles:
- Installing roles from galaxy
- Creating Roles
- Deleting Roles
- Assignment
Ansible Vault:
- Create
- Edit
- Encrypt
- Decrypt
- Assignment