From the course: Learning HashiCorp Packer

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Use Ansible to provision the MariaDB server

Challenge: Use Ansible to provision the MariaDB server - Packer Tutorial

From the course: Learning HashiCorp Packer

Start my 1-month free trial

Challenge: Use Ansible to provision the MariaDB server

(upbeat music) - [Instructor] Using what you've learned so far, I'm going to challenge you to use the Ansible provisioner to install MariaDB. I suggest you use the web server template, the Ansible version, as a base. Update the image filter as before to use Ubuntu 18.04 as the source image. Use the geerlingguy.mysql Ansible role, and set the variables for it to use MariaDB. You can find these variables in the documentation. Once that's done, launched the AMI, connect and verify that everything's running. Note that since we've upgraded to 18.04, you no longer need to tell Ansible to use the Python 3 interpreter, so you can delete this line in your packer template.

Contents