geerlingguy / packer-boxes

Jeff Geerling's Packer build configurations for Vagrant boxes.

Home Page:https://app.vagrantup.com/geerlingguy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CentOS 6 box build now failing due to SSL handshake error with ansible-galaxy

geerlingguy opened this issue · comments

    virtualbox-iso: Executing Ansible Galaxy: cd /tmp/packer-provisioner-ansible-local/5e40db00-ca8f-3118-2bfc-4704151348dc && ansible-galaxy --ignore-certs install -r /tmp/packer-provisioner-ansible-local/5e40db00-ca8f-3118-2bfc-4704151348dc/requirements.yml -p /tmp/packer-provisioner-ansible-local/5e40db00-ca8f-3118-2bfc-4704151348dc/roles
==> virtualbox-iso:  [WARNING]: - geerlingguy.packer_rhel was NOT installed successfully: Failed to
==> virtualbox-iso: get data from the API server (https://galaxy.ansible.com/api/): <urlopen error
==> virtualbox-iso: [Errno 1] _ssl.c:492: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3
==> virtualbox-iso: alert handshake failure>
==> virtualbox-iso: ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.
==> virtualbox-iso: Provisioning step had errors: Running the cleanup provisioner, if present...
==> virtualbox-iso: Deregistering and deleting VM...
==> virtualbox-iso: Deleting output directory...
Build 'virtualbox-iso' errored: Error executing Ansible: Error executing Ansible Galaxy: Non-zero exit status: 1

I think the easiest solution will be to run it using the ansible provisioner (instead of ansible-local), since SNI is not supported in CentOS 6 in any sane/logical/default manner.

Still working on this one. With local install things get funky.

Fixed. Using ansible instead of ansible-local provisioner.