🔥 BLACK FRIDAY SALE1 course ₹199·any 3 courses ₹399 for 3 months·ALL courses + 1 mock interview ₹599 for 6 monthsClaim offer →

Ansible · Real-World Automation · Intermediate · 24 min read

Building Images with Packer and Ansible: Golden AMIs, Container Images, Provisioner Patterns and Bake versus Configure

Create machine and container images with Packer using Ansible as the provisioner, following the book's chapter on creating images. Covers why bake images, Packer templates (HCL), builders for AWS, Azure and QEMU, the ansible and ansible-local provisioners, building a hardened base image, cleaning and sealing images, testing images, versioning and promotion pipelines, bake versus configure trade-offs, and container image alternatives.

Building Images with Packer and Ansible: Golden AMIs, Container Images, Provisioner Patterns and Bake versus Configure: lesson illustration

A first look

  • Intermediate level · 24 min read
  • 7 interview questions with model answers
  • Real-World Automation · Ansible Automation

You will learn to

  • Why bake images, and what belongs in an image versus runtime configuration
  • Packer concepts: sources, builders, provisioners, post-processors
  • The Ansible provisioners: ansible (remote) and ansible-local
  • …and 3 more topics inside
Create an account to start

Create a free account to see what this lesson covers

  • Every free lesson in every section, in full
  • Track your progress and pick up where you left off
  • Free practice questions and an incident simulation
  • Takes under a minute: name, email and a password

No card needed. Full access to Ansible is a paid upgrade you can choose later.