Get in Touch
 Duration 7 hours

Course Outline

1. Introduction to Ansible

  • Overview of Configuration Management and Automation
    • Defining Configuration Management
    • The role of automation in modern IT operations
  • What is Ansible?
    • Historical context and technological evolution
    • Primary features and strategic advantages
  • Ansible Architecture
    • Distinction between Control Nodes and Managed Nodes
    • Inventory structure and configuration files
    • Integration of Modules, Plugins, and Playbooks
  • Practical Exercise

2. Setting Up Ansible

  • Installing Ansible
    • Deployment across various operating systems (Windows, macOS, Linux)
  • Environment Configuration
    • Setup of the control node
    • SSH key generation and distribution strategies
  • Practical Exercise

3. Ansible Basics and Automation

  • Ad-Hoc Commands for Automation
    • Executing basic Ansible commands
    • Utilizing standard modules (ping, command, copy, yum, apt)
  • Inventory Management
    • Comparing Static vs Dynamic inventory methods
    • Organizing hosts into groups
    • Application of host and group variables
  • Practical Exercise

4. Writing Your First Playbook

Theory (20 minutes)

  • Introduction to Playbooks
    • Foundations of YAML syntax
    • Analyzing Playbook structure: Plays, Tasks, and Variables
  • Automating Tasks with Playbooks
    • Practical examples: software installation, file management, and service control
  • Practical Exercise
  • Task Control
    • Incorporating Handlers and Notifications
    • Implementing conditionals and loops within tasks

5. Advanced Playbook Concepts

  • Roles for Structured Automation
    • Conceptual overview of roles
    • Process for creating and deploying roles
  • Variables and Facts
    • Defining and applying variables effectively
    • Collecting and leveraging system facts
  • Templates
    • Leveraging Jinja2 templates
    • Dynamic generation of configuration files
  • Practical Exercise

6. Conclusion and Next Steps

  • Recap of the Day
    • Summary of key insights on Ansible automation
  • Further Learning Resources
    • Recommended books, tutorials, and official documentation
  • Q&A

Requirements

A solid grasp of Linux/Unix command-line operations. Prior experience with SSH and fundamental networking principles is required.

Number of participants


Price per participant (excl. VAT)

Testimonials (5)

Upcoming Courses

Related Categories