geerlingguy/packer-centos-65 — pull request #1 by DavidWittman (2014-04-08 19:30:41+00:00)
Title: Add python-setuptools to ansible install script

Without setuptools available, the ansible provisioner run will fail with the following error on CentOS 6.5 minimal:

> ==> virtualbox-iso: Provisioning with Ansible...
> virtualbox-iso: Creating Ansible staging directory...
> virtualbox-iso: Creating directory: /tmp/packer-provisioner-ansible-local
> virtualbox-iso: Uploading main Playbook file...
> virtualbox-iso: Uploading role directories...
> virtualbox-iso: Creating directory: /tmp/packer-provisioner-ansible-local/roles/geerlingguy.packer-rhel
> virtualbox-iso: Executing Ansible: ansible-playbook /tmp/packer-provisioner-ansible-local/main.yml -c local -i "127.0.0.1,"
> virtualbox-iso: Traceback (most recent call last):
> virtualbox-iso: File "/usr/bin/ansible-playbook", line 22, in
> virtualbox-iso: import pkg_resources
> virtualbox-iso: ImportError: No module named pkg_resources
> ==> virtualbox-iso: Unregistering and deleting virtual machine...
> ==> virtualbox-iso: Deleting output directory...
> Build 'virtualbox-iso' errored: Error executing Ansible: Non-zero exit status: 1

This commit adds python-setuptools to the ansible install script.