ansible_logo Packer is a really great solution to make an image in several formats (VirtualBox, Docker…). I recently wanted to deploy it on a Jenkins server to automatically perform image build with the help of Packer.

That’s why I’ve wrote a Packer role for Ansible really easy to use. You simply have to set (or let them by defaults) vars:

# Packer version to install
packer_version: '0.7.5'
# Packer destination folder
packer_destination: '/usr/bin'

It will install the desired version :-)

You can find it on the Ansible Galaxy here.