---
title: Terraform & Ansible
description: Terraform provisions cloud infrastructure and Ansible configures servers, both as code. You will learn providers, state, modules, playbooks and roles, and how to build repeatable environments.
category: programming-tech
subcategory: devops
difficulty: beginner, intermediate, advanced
url: /subject/terraform-and-ansible
---

# Terraform & Ansible

Terraform provisions cloud infrastructure and Ansible configures servers, both as code. You will learn providers, state, modules, playbooks and roles, and how to build repeatable environments.

## Available Resources

1 Books • 2 Websites

## Youtubes

### 1. Ansible 101 (Jeff Geerling)

**Author:** Jeff Geerling

Fifteen one-hour episodes walking through Ansible for DevOps: ad-hoc commands, inventory, playbooks, roles, Ansible Galaxy, testing with Molecule, security hardening, AWX/Tower, dynamic inventory and Windows automation, all with live examples. It's the best free guided path for Ansible.

**Difficulty:** Beginner | **Language:** English | **Price:** Free

**Link:** https://www.youtube.com/playlist?list=PL2_OBreMn7FqZkvMYt6ATmgC0KAGGJNAN

**Tags:** ansible, configuration-management, infrastructure-as-code, devops-automation

## Websites

### 1. Ansible Community Documentation: Getting Started and Playbook Guide

The authoritative reference for playbook and role semantics; pairs with Geerling's book/videos for the narrative path. Official Ansible documentation. The getting-started section explains control nodes, inventories, modules and a first playbook; the linked playbook guide covers variables, handlers, conditionals, loops, roles, collections and recommended project layout.

**Difficulty:** Beginner | **Language:** English | **Price:** Free

**Link:** https://docs.ansible.com/projects/ansible/latest/getting_started/index.html

**Tags:** ansible, ansible-playbooks, configuration-management, infrastructure-as-code

### 2. A Comprehensive Guide to Terraform

**Author:** Yevgeniy Brikman

Free six-part article series adapted from Terraform: Up & Running. Compares Terraform with Ansible, Chef, Pulumi and CloudFormation, then covers fundamentals, state management, modules, loops and conditionals, and using Terraform as a team.

**Difficulty:** Intermediate | **Language:** English | **Price:** Free

**Link:** https://gruntwork.io/blog/a-comprehensive-guide-to-terraform

**Tags:** terraform, infrastructure-as-code, terraform-state, terraform-modules

## Books

### 1. Terraform: Up & Running (3rd Edition)

**Author:** Yevgeniy Brikman

Practitioner book on writing infrastructure as code with Terraform 1.x. Covers state management and locking, reusable modules, loops and conditionals, secrets handling, automated testing, and running Terraform safely as a team in production.

**Difficulty:** Intermediate | **Language:** English | **Price:** Paid

**Link:** https://www.amazon.com/dp/1098116747?tag=edmonddante07-20

**Tags:** terraform, infrastructure-as-code, terraform-modules, terraform-state, infrastructure-testing

---

*This content is part of Dantes.io - Your Treasure Map to Knowledge*

*Curated by humans at Dantes.io. Personal study use welcome; republishing this curation requires permission (team@dantes.io).*

View this page online: https://dantes.io/subject/terraform-and-ansible