Using Ansible and Terraform Together
summary
Demonstrates Terraform provisioning two Azure Linux VMs and exporting the private key, public IPs and username which a GitHub Actions job parses into an Ansible inventory and runs a playbook that installs and starts Nginx; the pipeline runs Terraform apply (auto-approve), writes id_rsa, builds inventory from JSON outputs, installs Ansible and finishes in about three minutes with the Nginx page reachable. Covers local-exec, remote state, dynamic inventory and a Spacelift integration.
AI-written summary · about
chapters (10)
- 0:00Introduction and agenda
- 1:21Terraform core concepts
- 4:04Ansible core concepts
- 7:43Defining the boundary
- 8:40Better together
- 8:54Workflow and integration
- 9:56Integration data points
- 16:12Integration strategies
- 18:14Practical demonstration
- 27:45Best practices and wrap-up
related talks
01h 00mTerraform - colonising Azure!
25mThe Right Way to DevOps with Terraform and Ansible
36mTerraform & CI/CD
20mCombining Ansible and Terraform for CI – better together love story based on OVN-CI project
37mFrom IaC to InfraOps: Automating Day-2 Operations with Terraform Actions & Ansible
29mTerraform on Azure for Beginners
50mTerraform 101: Building Repeatable, Secure Azure Infrastructure
49mBuild, provision & deploy in the Cloud with Packer, Ansible & Terraform
