DevOps · DOP-03

Configuration Management with Ansible

12 hours 2 days
Last updated
Configuration Management ด้วย Ansible

Configuration Management with Ansible is a 12-hour training course by IT Genius Institute. Once an organization runs dozens of servers, configuring each one by hand wastes time, creates inconsistency between machines and leaves no audit trail.…

Training schedule

No public rounds are open right now — register your interest and we will contact you when the next round opens, or request an in-house session for your team.

Corporate training quote

Once an organization runs dozens of servers, configuring each one by hand wastes time, creates inconsistency between machines and leaves no audit trail. Ansible solves this by describing the desired state of machines in YAML and bringing every server into that state at once, with no agent to install because it works over existing SSH. This course takes learners from Ansible fundamentals to real organizational use: managing

inventory, running ad-hoc commands, writing playbooks, using the modules that matter for packages, services and files, variables and Jinja2 templates, organizing code into roles, separating dev and production environments, protecting secrets with Ansible Vault, and the idempotency principle that makes repeated runs safe. Every topic is hands-on against several lab machines at once. (2 days, 6 hours per day, 12 hours in total, Intermediate level.)

Objectives

  • Understand configuration management and its benefits over manual setup
  • Install Ansible and manage both static and dynamic inventory
  • Run commands across many servers at once with ad-hoc commands
  • Write playbooks in YAML and understand plays, tasks and handlers
  • Use common modules to manage packages, services, users and files
  • Use variables, facts and Jinja2 templates to build flexible configuration files
  • Organize code into roles and reuse roles from Ansible Galaxy
  • Separate configuration across dev, staging and production environments
  • Protect secrets with Ansible Vault and write truly idempotent playbooks

Who this course is for

  • System administrators managing many servers
  • DevOps engineers who want to automate server configuration
  • Infrastructure teams who need every machine to meet the same standard
  • Developers who prepare their own system environments
  • Teams who provision machines with Terraform and need to configure them next

Prerequisites

  • Basic Linux command line skills (the Linux Administration course is recommended first)
  • Understanding of SSH connections and SSH keys
  • Ability to read YAML (programming skills not required)
  • Experience managing more than one server makes the benefits immediately clear

Curriculum

Course Details

A 2-day course, 6 hours per day (12 hours in total), delivered as lectures with hands-on labs against several machines at once. Intermediate level. Learners take home a lab guide, complete playbook and role samples, and a new-server setup checklist. Ansible is open source and can be used in the organization at no licensing cost.

Day 1: Ansible Fundamentals and Playbooks

Section 1: Configuration Management Concepts

  • The problems with manual configuration: slow, inconsistent and unauditable
  • How Ansible works: agentless over SSH and the declarative model
  • Ansible versus provisioning tools such as Terraform, and using them together
  • The idempotency principle: repeated runs produce the same result

Section 2: Installation and Inventory Management

  • Installing Ansible on the control node and preparing SSH keys to the targets
  • Writing file-based inventory, grouping hosts and setting group and host variables
  • Verifying connectivity and troubleshooting failed connections
  • Lab: set up the control node and connect to several target machines

Section 3: Ad-hoc Commands

  • Running one command across many machines without writing a playbook
  • Using basic modules ad-hoc: ping, command, shell and copy
  • Targeting hosts with patterns and limiting concurrency
  • Lab: check status and gather information from all machines with ad-hoc commands

Section 4: Writing Playbooks

  • Playbook structure: plays, tasks, handlers and readable naming
  • Using become for privilege escalation and setting the connection user
  • Dry runs with check mode and reviewing changes with diff
  • Lab: write a playbook that installs and configures a web server on all targets

Section 5: Modules for Real Work

  • Managing packages, services, users and groups with standard modules
  • Managing files, directories, permissions and copying files to targets
  • Using conditionals (when), loops and error handling
  • Lab: write a playbook that prepares a new machine against the organization checklist

Day 2: Templates, Roles and Production Use

Section 6: Variables, Facts and Templates

  • Variable precedence and where to define variables
  • Using facts gathered from target machines to drive decisions
  • Generating configuration files with Jinja2 templates tailored per machine
  • Lab: generate a configuration file from a template that adapts to each host

Section 7: Roles and Code Organization

  • Standard role structure: tasks, handlers, templates, files, vars and defaults
  • Refactoring long playbooks into reusable roles
  • Using roles from Ansible Galaxy and assessing their trustworthiness first
  • Lab: convert your playbook into a role and reuse it

Section 8: Managing Multiple Environments

  • Separating inventory and variables across dev, staging and production
  • Using group_vars and host_vars for environment-specific values
  • Rolling updates so services do not all restart at once
  • Lab: run the same playbook against two environments with different settings

Section 9: Security and Ansible Vault

  • Storing passwords and keys safely with Ansible Vault and encrypting variable files
  • Least-privilege permissions for the account that runs Ansible
  • Practices for keeping Ansible code in Git without leaking secrets
  • Lab: encrypt a secrets file with Vault and consume it from a playbook

Section 10: Production Use and Maintenance

  • Writing genuinely idempotent playbooks and testing before touching production
  • Structuring an Ansible project so a team can work on it together
  • Running Ansible from CI/CD and keeping run logs
  • Using Ansible with Terraform: provision the machine then configure it immediately

Section 11: Capstone and Next Steps

  • Capstone: write a playbook set that prepares a new server completely for service
  • Present your role structure and the reasoning behind the design
  • A first-30-days plan for adopting Ansible in your organization
  • Workshop: present your playbooks and review the code together

Frequently asked questions

Who is Configuration Management with Ansible for, and what background is needed?

Built for System administrators managing many servers · DevOps engineers who want to automate server configuration · Infrastructure teams who need every machine to meet the same standard Background you should have: Basic Linux command line skills (the Linux Administration course is recommended first) · Understanding of SSH connections and SSH keys Not sure the fit is right? Talk to our team on LINE @itgenius or call 02-570-8449.

How much does Configuration Management with Ansible cost and how long does it run?

THB 7,900 (currently THB 7,110 on promotion). The course runs 12 hours. The fee covers course materials, lunch and refreshments throughout. Pay by bank transfer to the company account, confirm it on our payment page, and we can issue the receipt or tax invoice in your company's name.

Do I get a certificate?

Yes. Everyone who completes the course receives a Certificate of Completion from IT Genius Institute. Each certificate carries its own number, and anyone holding that number can verify it online on our certificate page, so you can add it to your portfolio or pass it to HR as evidence of training.

Where does the training take place, and is there an online option?

You can attend onsite at IT Genius Institute or arrange to join online, and we also run it as a private in-house session for your team. Ask about dates and venues on LINE @itgenius or call 02-570-8449.

What if I fall behind or miss a session — can I retake it?

Yes. You may retake the same course free of charge in a later round, under the institute's conditions. Tell our team which course and round you attended, and we will check it and offer you the rounds that still have seats. Ask us on LINE @itgenius or call 02-570-8449.

How do I enrol, or request a quotation for my company?

Enrol online with the registration form on this page. You can register several attendees at once and enter your tax ID and billing address for the tax invoice. Or request a company quotation straight from the quote button. For anything else call 02-570-8449 or reach us on LINE @itgenius.

Instructors

Run this course for your whole team

We run this course in-house, tailored to your stack.

Corporate training quote