Its still not working :(

Thanks for your help so far. I am calling it a night. Will try more tomorrow

On Monday, January 14, 2019 at 11:50:52 PM UTC-8, Rickard von Essen wrote:
>
> Packer runs Ansible towards a local SSH proxy.
>
> The ansible Packer provisioner runs Ansible playbooks. It dynamically 
>> creates an Ansible inventory file configured to use SSH, runs an SSH 
>> server, executes ansible-playbook, and marshals Ansible plays through the 
>> SSH server to the machine being provisioned by Packer.
>
>
> https://packer.io/docs/provisioners/ansible.html
>
> For the problem with "too many authentication failures" see
> https://packer.io/docs/provisioners/ansible.html#too-many-ssh-keys
>
> In your case you can probably add something like:
>
> "extra_arguments": [ "--ssh-common-args=\"-o IdentityAgent=none\"" ]
>
> to the ansible provisioner.
>
> On Tue, Jan 15, 2019 at 8:34 AM Dan Moutal <[email protected] <javascript:>> 
> wrote:
>
>> I removed that line but it still fails (see the attached log). I should 
>> add that the corresponding public key was uploaded to Digital Ocean (but I 
>> I don't know if Packer would use that key).
>>
>> Looks like it has trouble establishing an ssh connection to 127.0.0.1(I 
>> don't understand why it would be trying to do that. Why not ssh directly 
>> into the newly created droplet at DO?) I am pretty sure the sshd is not 
>> running in my Mac. Should it be?
>>
>> Thanks for your help so far
>>
>> On Monday, January 14, 2019 at 10:56:48 PM UTC-8, Rickard von Essen wrote:
>>>
>>> Remove this line:
>>>
>>>  "private_key_file=~/.ssh/id_ed25519",
>>>
>>> It will interfere with how Packer handles the connection towards the VM. 
>>> (Also I don't see how that key could work, there is not provisioning of it 
>>> before and not supplied to the VM directly in any way)
>>>
>>> On Mon, Jan 14, 2019 at 5:31 PM Dan Moutal <[email protected]> wrote:
>>>
>>>> Here is the playbook. I use this same playboot with vagrant without 
>>>> issues.
>>>>
>>>> -- 
>>>> This mailing list is governed under the HashiCorp Community Guidelines 
>>>> - https://www.hashicorp.com/community-guidelines.html. Behavior in 
>>>> violation of those guidelines may result in your removal from this mailing 
>>>> list.
>>>>  
>>>> GitHub Issues: https://github.com/mitchellh/packer/issues
>>>> IRC: #packer-tool on Freenode
>>>> --- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Packer" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/packer-tool/CAD80A2B-8FF3-4261-B8BF-D8A8605F5505%40moutal.ca
>>>>  
>>>> <https://groups.google.com/d/msgid/packer-tool/CAD80A2B-8FF3-4261-B8BF-D8A8605F5505%40moutal.ca?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>>
>>>> -- 
>>>> Dan Moutal
>>>>
>>>> On Jan 14, 2019, at 1:20 AM, Rickard von Essen <[email protected]> 
>>>> wrote:
>>>>
>>>> The shell provisioner fails because of tcsh, see the docs 1)
>>>>
>>>> The ansible provisioning seems to work but fail on something in your 
>>>> playbook. Can you provide your playbook?
>>>>
>>>>
>>>> 1) https://packer.io/docs/provisioners/shell.html#freebsd-example
>>>>
>>>> On Mon, Jan 14, 2019 at 1:57 AM Dan Moutal <[email protected]> wrote:
>>>>
>>>>> I am just getting started with Packer and have run into some issues.
>>>>>
>>>>> I am running Packer 1.3.3 installed using homebrew on MacOS 10.14.2 
>>>>> and I am having trouble running the Ansible Provisioner. As a 
>>>>> troubleshooting step I tried using the shell provisioner but that also 
>>>>> failed. I don't really need the ouse the shell provisioner since I plan 
>>>>> to 
>>>>> configure everything using Ansible but figured it would be a simpler test 
>>>>> to troubleshoot.
>>>>>
>>>>> I have attached my packer json builds and the corresponding output.
>>>>>
>>>>> Run1: Ansible provisioner
>>>>> Run2: Shell provisioner
>>>>>
>>>>> Any help would be appreciated.
>>>>>
>>>>> -- 
>>>>> This mailing list is governed under the HashiCorp Community Guidelines 
>>>>> - https://www.hashicorp.com/community-guidelines.html. Behavior in 
>>>>> violation of those guidelines may result in your removal from this 
>>>>> mailing 
>>>>> list.
>>>>>  
>>>>> GitHub Issues: https://github.com/mitchellh/packer/issues
>>>>> IRC: #packer-tool on Freenode
>>>>> --- 
>>>>> You received this message because you are subscribed to the Google 
>>>>> Groups "Packer" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to [email protected].
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/packer-tool/2fe0ccb6-89a3-4b62-ab5a-0b07a90d1387%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/packer-tool/2fe0ccb6-89a3-4b62-ab5a-0b07a90d1387%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>> -- 
>>>> This mailing list is governed under the HashiCorp Community Guidelines -
>>>>  https://www.hashicorp.com/community-guidelines.html. Behavior in 
>>>> violation of those guidelines may result in your removal from this mailing 
>>>> list.
>>>>  
>>>> GitHub Issues: https://github.com/mitchellh/packer/issues
>>>> IRC: #packer-tool on Freenode
>>>> --- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Packer" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/packer-tool/CALz9Rt--YzjOKFU82Q7RgnM4ipLtRgHiY%2B6E8uaGWty-9HoMcg%40mail.gmail.com
>>>>  
>>>> <https://groups.google.com/d/msgid/packer-tool/CALz9Rt--YzjOKFU82Q7RgnM4ipLtRgHiY%2B6E8uaGWty-9HoMcg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>>
>>>> -- 
>>>> This mailing list is governed under the HashiCorp Community Guidelines 
>>>> - https://www.hashicorp.com/community-guidelines.html. Behavior in 
>>>> violation of those guidelines may result in your removal from this mailing 
>>>> list.
>>>>  
>>>> GitHub Issues: https://github.com/mitchellh/packer/issues
>>>> IRC: #packer-tool on Freenode
>>>> --- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Packer" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/packer-tool/CAD80A2B-8FF3-4261-B8BF-D8A8605F5505%40moutal.ca
>>>>  
>>>> <https://groups.google.com/d/msgid/packer-tool/CAD80A2B-8FF3-4261-B8BF-D8A8605F5505%40moutal.ca?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> -- 
>> This mailing list is governed under the HashiCorp Community Guidelines - 
>> https://www.hashicorp.com/community-guidelines.html. Behavior in 
>> violation of those guidelines may result in your removal from this mailing 
>> list.
>>  
>> GitHub Issues: https://github.com/mitchellh/packer/issues
>> IRC: #packer-tool on Freenode
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Packer" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/packer-tool/b38eb72f-f4b6-4b3b-9478-b06a891cedb4%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/packer-tool/b38eb72f-f4b6-4b3b-9478-b06a891cedb4%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/c9312a00-a2ff-44b8-8d56-05fe7e357ac0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
2019/01/15 00:08:01 [INFO] Packer version: 1.3.3
2019/01/15 00:08:01 Packer Target OS/Arch: darwin amd64
2019/01/15 00:08:01 Built with Go Version: go1.11.2
2019/01/15 00:08:01 Detected home directory from env var: /Users/dan
2019/01/15 00:08:01 Using internal plugin for amazon-ebs
2019/01/15 00:08:01 Using internal plugin for parallels-iso
2019/01/15 00:08:01 Using internal plugin for digitalocean
2019/01/15 00:08:01 Using internal plugin for openstack
2019/01/15 00:08:01 Using internal plugin for profitbricks
2019/01/15 00:08:01 Using internal plugin for qemu
2019/01/15 00:08:01 Using internal plugin for vmware-iso
2019/01/15 00:08:01 Using internal plugin for cloudstack
2019/01/15 00:08:01 Using internal plugin for file
2019/01/15 00:08:01 Using internal plugin for googlecompute
2019/01/15 00:08:01 Using internal plugin for hcloud
2019/01/15 00:08:01 Using internal plugin for null
2019/01/15 00:08:01 Using internal plugin for oracle-oci
2019/01/15 00:08:01 Using internal plugin for scaleway
2019/01/15 00:08:01 Using internal plugin for virtualbox-ovf
2019/01/15 00:08:01 Using internal plugin for amazon-instance
2019/01/15 00:08:01 Using internal plugin for lxc
2019/01/15 00:08:01 Using internal plugin for parallels-pvm
2019/01/15 00:08:01 Using internal plugin for vmware-vmx
2019/01/15 00:08:01 Using internal plugin for amazon-chroot
2019/01/15 00:08:01 Using internal plugin for oneandone
2019/01/15 00:08:01 Using internal plugin for triton
2019/01/15 00:08:01 Using internal plugin for virtualbox-iso
2019/01/15 00:08:01 Using internal plugin for amazon-ebsvolume
2019/01/15 00:08:01 Using internal plugin for azure-arm
2019/01/15 00:08:01 Using internal plugin for hyperv-vmcx
2019/01/15 00:08:01 Using internal plugin for ncloud
2019/01/15 00:08:01 Using internal plugin for amazon-ebssurrogate
2019/01/15 00:08:01 Using internal plugin for hyperv-iso
2019/01/15 00:08:01 Using internal plugin for lxd
2019/01/15 00:08:01 Using internal plugin for oracle-classic
2019/01/15 00:08:01 Using internal plugin for alicloud-ecs
2019/01/15 00:08:01 Using internal plugin for docker
2019/01/15 00:08:01 Using internal plugin for chef-solo
2019/01/15 00:08:01 Using internal plugin for file
2019/01/15 00:08:01 Using internal plugin for puppet-server
2019/01/15 00:08:01 Using internal plugin for windows-shell
2019/01/15 00:08:01 Using internal plugin for breakpoint
2019/01/15 00:08:01 Using internal plugin for puppet-masterless
2019/01/15 00:08:01 Using internal plugin for powershell
2019/01/15 00:08:01 Using internal plugin for chef-client
2019/01/15 00:08:01 Using internal plugin for converge
2019/01/15 00:08:01 Using internal plugin for shell-local
2019/01/15 00:08:01 Using internal plugin for windows-restart
2019/01/15 00:08:01 Using internal plugin for ansible-local
2019/01/15 00:08:01 Using internal plugin for salt-masterless
2019/01/15 00:08:01 Using internal plugin for shell
2019/01/15 00:08:01 Using internal plugin for ansible
2019/01/15 00:08:01 Using internal plugin for vagrant-cloud
2019/01/15 00:08:01 Using internal plugin for vsphere
2019/01/15 00:08:01 Using internal plugin for artifice
2019/01/15 00:08:01 Using internal plugin for docker-save
2019/01/15 00:08:01 Using internal plugin for docker-tag
2019/01/15 00:08:01 Using internal plugin for amazon-import
2019/01/15 00:08:01 Using internal plugin for compress
2019/01/15 00:08:01 Using internal plugin for shell-local
2019/01/15 00:08:01 Using internal plugin for docker-push
2019/01/15 00:08:01 Using internal plugin for manifest
2019/01/15 00:08:01 Using internal plugin for vsphere-template
2019/01/15 00:08:01 Using internal plugin for googlecompute-export
2019/01/15 00:08:01 Using internal plugin for googlecompute-import
2019/01/15 00:08:01 Using internal plugin for vagrant
2019/01/15 00:08:01 Using internal plugin for alicloud-import
2019/01/15 00:08:01 Using internal plugin for checksum
2019/01/15 00:08:01 Using internal plugin for docker-import
2019/01/15 00:08:01 Detected home directory from env var: /Users/dan
2019/01/15 00:08:01 Attempting to open config file: /Users/dan/.packerconfig
2019/01/15 00:08:01 [WARN] Config file doesn't exist: /Users/dan/.packerconfig
2019/01/15 00:08:01 Packer config: &{DisableCheckpoint:false 
DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 
Builders:map[digitalocean:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean
 qemu:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu 
vmware-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso
 
amazon-instance:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance
 
docker:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker
 file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file 
hcloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hcloud
 
parallels-pvm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm
 
amazon-chroot:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot
 
azure-arm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm
 
alicloud-ecs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs
 
profitbricks:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks
 
virtualbox-ovf:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf
 
ncloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud
 
cloudstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack
 
oracle-oci:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci
 
oneandone:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone
 
triton:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton
 
amazon-ebsvolume:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume
 
hyperv-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso
 
oracle-classic:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic
 
googlecompute:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute
 
hyperv-vmcx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx
 
amazon-ebssurrogate:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate
 
amazon-ebs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs
 
parallels-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso
 
openstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack
 
scaleway:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway
 lxc:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc 
vmware-vmx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx
 lxd:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd 
null:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null 
virtualbox-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso]
 
PostProcessors:map[vagrant-cloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud
 
docker-tag:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag
 
amazon-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import
 
shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local
 
alicloud-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import
 
docker-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import
 
docker-save:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save
 
manifest:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest
 
artifice:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice
 
docker-push:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push
 
vsphere-template:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template
 
googlecompute-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-import
 
vagrant:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant
 
vsphere:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere
 
compress:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress
 
googlecompute-export:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export
 
checksum:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum]
 
Provisioners:map[converge:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge
 
ansible-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local
 
windows-shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell
 
breakpoint:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-breakpoint
 
shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local
 
shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell
 
ansible:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible
 
chef-solo:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo
 
puppet-server:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server
 
puppet-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless
 
powershell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell
 
salt-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless
 
file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file
 
chef-client:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client
 
windows-restart:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart]}
2019/01/15 00:08:01 Detected home directory from env var: /Users/dan
2019/01/15 00:08:01 Setting cache directory: 
/Users/dan/Code/Infrastructure/Packer/DO-FreeBSD/packer_cache
2019/01/15 00:08:01 Detected home directory from env var: /Users/dan
2019/01/15 00:08:01 Loading builder: digitalocean
2019/01/15 00:08:01 Plugin could not be found. Checking same directory as 
executable.
2019/01/15 00:08:01 Current exe path: /usr/local/bin/packer
2019/01/15 00:08:01 Creating plugin client for path: /usr/local/bin/packer
2019/01/15 00:08:01 Starting plugin: /usr/local/bin/packer 
[]string{"/usr/local/bin/packer", "plugin", "packer-builder-digitalocean"}
2019/01/15 00:08:01 Waiting for RPC address for: /usr/local/bin/packer
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 [INFO] Packer version: 1.3.3
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Packer Target OS/Arch: darwin 
amd64
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Built with Go Version: go1.11.2
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Detected home directory from 
env var: /Users/dan
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Attempting to open config file: 
/Users/dan/.packerconfig
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 [WARN] Config file doesn't 
exist: /Users/dan/.packerconfig
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Packer config: 
&{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 
PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Detected home directory from 
env var: /Users/dan
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Setting cache directory: 
/Users/dan/Code/Infrastructure/Packer/DO-FreeBSD/packer_cache
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Detected home directory from 
env var: /Users/dan
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 args: 
[]string{"packer-builder-digitalocean"}
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Plugin minimum port: 10000
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Plugin maximum port: 25000
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Plugin address: unix 
/var/folders/mr/wndcdqqn0bb9xz1g29zn1c2m0000gn/T/packer-plugin693635249
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Waiting for connection...
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Serving a plugin connection...
2019/01/15 00:08:01 Loading provisioner: ansible
2019/01/15 00:08:01 Plugin could not be found. Checking same directory as 
executable.
2019/01/15 00:08:01 Current exe path: /usr/local/bin/packer
2019/01/15 00:08:01 Creating plugin client for path: /usr/local/bin/packer
2019/01/15 00:08:01 Starting plugin: /usr/local/bin/packer 
[]string{"/usr/local/bin/packer", "plugin", "packer-provisioner-ansible"}
2019/01/15 00:08:01 Waiting for RPC address for: /usr/local/bin/packer
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 [INFO] Packer version: 1.3.3
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Packer Target OS/Arch: darwin 
amd64
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Built with Go Version: go1.11.2
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Detected home directory from 
env var: /Users/dan
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Attempting to open config file: 
/Users/dan/.packerconfig
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 [WARN] Config file doesn't 
exist: /Users/dan/.packerconfig
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Packer config: 
&{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 
PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Detected home directory from 
env var: /Users/dan
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Setting cache directory: 
/Users/dan/Code/Infrastructure/Packer/DO-FreeBSD/packer_cache
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Detected home directory from 
env var: /Users/dan
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 args: 
[]string{"packer-provisioner-ansible"}
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Plugin minimum port: 10000
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Plugin maximum port: 25000
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Plugin address: unix 
/var/folders/mr/wndcdqqn0bb9xz1g29zn1c2m0000gn/T/packer-plugin842970285
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Waiting for connection...
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 Serving a plugin connection...
2019/01/15 00:08:01 ui: digitalocean output will be in this color.
2019/01/15 00:08:01 ui: 
2019/01/15 00:08:01 Build debug mode: false
2019/01/15 00:08:01 Force build: false
2019/01/15 00:08:01 On error: 
2019/01/15 00:08:01 Preparing build: digitalocean
2019/01/15 00:08:01 packer: 2019/01/15 00:08:01 ansible-playbook version: 2.7.5
2019/01/15 00:08:01 Waiting on builds to complete...
2019/01/15 00:08:01 Starting build run: digitalocean
2019/01/15 00:08:01 Running builder: digitalocean
2019/01/15 00:08:01 [INFO] (telemetry) Starting builder digitalocean
2019/01/15 00:08:01 ui: ==> digitalocean: Creating temporary ssh key for 
droplet...
2019/01/15 00:08:02 packer: 2019/01/15 00:08:02 temporary ssh key name: 
packer-5c3d94e1-3b99-259d-bd3d-da28cef34f33
2019/01/15 00:08:02 ui: ==> digitalocean: Creating droplet...
2019/01/15 00:08:03 ui: ==> digitalocean: Waiting for droplet to become 
active...
2019/01/15 00:08:03 packer: 2019/01/15 00:08:03 Waiting for up to 360 seconds 
for droplet to become active
2019/01/15 00:08:03 packer: 2019/01/15 00:08:03 Checking droplet status... 
(attempt: 1)
2019/01/15 00:08:07 packer: 2019/01/15 00:08:07 Checking droplet status... 
(attempt: 2)
2019/01/15 00:08:10 packer: 2019/01/15 00:08:10 Checking droplet status... 
(attempt: 3)
2019/01/15 00:08:14 packer: 2019/01/15 00:08:14 Checking droplet status... 
(attempt: 4)
2019/01/15 00:08:18 packer: 2019/01/15 00:08:18 Checking droplet status... 
(attempt: 5)
2019/01/15 00:08:21 packer: 2019/01/15 00:08:21 Checking droplet status... 
(attempt: 6)
2019/01/15 00:08:24 packer: 2019/01/15 00:08:24 Checking droplet status... 
(attempt: 7)
2019/01/15 00:08:28 packer: 2019/01/15 00:08:28 Checking droplet status... 
(attempt: 8)
2019/01/15 00:08:31 packer: 2019/01/15 00:08:31 Checking droplet status... 
(attempt: 9)
2019/01/15 00:08:34 packer: 2019/01/15 00:08:34 Checking droplet status... 
(attempt: 10)
2019/01/15 00:08:38 packer: 2019/01/15 00:08:38 Checking droplet status... 
(attempt: 11)
2019/01/15 00:08:41 packer: 2019/01/15 00:08:41 Checking droplet status... 
(attempt: 12)
2019/01/15 00:08:44 packer: 2019/01/15 00:08:44 Checking droplet status... 
(attempt: 13)
2019/01/15 00:08:48 packer: 2019/01/15 00:08:48 Checking droplet status... 
(attempt: 14)
2019/01/15 00:08:49 ui: ==> digitalocean: Using ssh communicator to 
connect: 157.230.146.21
2019/01/15 00:08:49 packer: 2019/01/15 00:08:49 [INFO] Waiting for SSH, up to 
timeout: 5m0s
2019/01/15 00:08:49 ui: ==> digitalocean: Waiting for SSH to become 
available...
2019/01/15 00:09:04 packer: 2019/01/15 00:09:04 [DEBUG] TCP connection to SSH 
ip/port failed: dial tcp 157.230.146.21:22: i/o timeout
2019/01/15 00:09:16 packer: 2019/01/15 00:09:16 [DEBUG] TCP connection to SSH 
ip/port failed: dial tcp 157.230.146.21:22: connect: connection refused
2019/01/15 00:09:22 packer: 2019/01/15 00:09:22 [INFO] Attempting SSH 
connection...
2019/01/15 00:09:22 packer: 2019/01/15 00:09:22 [DEBUG] reconnecting to TCP 
connection for SSH
2019/01/15 00:09:22 packer: 2019/01/15 00:09:22 [DEBUG] handshaking with SSH
2019/01/15 00:09:22 packer: 2019/01/15 00:09:22 [DEBUG] handshake complete!
2019/01/15 00:09:22 packer: 2019/01/15 00:09:22 [DEBUG] Opening new ssh session
2019/01/15 00:09:22 packer: 2019/01/15 00:09:22 [INFO] agent forwarding enabled
2019/01/15 00:09:22 ui: ==> digitalocean: Connected to SSH!
2019/01/15 00:09:22 packer: 2019/01/15 00:09:22 Running the provision hook
2019/01/15 00:09:22 [INFO] (telemetry) Starting provisioner ansible
2019/01/15 00:09:22 ui: ==> digitalocean: Provisioning with 
Ansible...
2019/01/15 00:09:22 packer: 2019/01/15 00:09:22 SSH proxy: serving on 
127.0.0.1:59647
2019/01/15 00:09:22 ui: ==> digitalocean: Executing Ansible: 
ansible-playbook --extra-vars packer_build_name=digitalocean 
packer_builder_type=digitalocean -i 
/var/folders/mr/wndcdqqn0bb9xz1g29zn1c2m0000gn/T/packer-provisioner-ansible209427303
 /Users/dan/Code/Infrastructure/Packer/DO-FreeBSD/playbook.yml -e 
ansible_ssh_private_key_file=/var/folders/mr/wndcdqqn0bb9xz1g29zn1c2m0000gn/T/ansible-key786777128
 --ssh-common-args="-o IdentityAgent=none"
2019/01/15 00:09:24 ui:     digitalocean:
2019/01/15 00:09:24 ui:     digitalocean: PLAY [Bootstap Ansible 
FreeBSD] ************************************************
2019/01/15 00:09:24 ui:     digitalocean:
2019/01/15 00:09:24 ui:     digitalocean: TASK [Setup Sudo and Python3] 
**************************************************
2019/01/15 00:09:24 packer: 2019/01/15 00:09:24 SSH proxy: accepted connection
2019/01/15 00:09:24 packer: 2019/01/15 00:09:24 authentication attempt from 
127.0.0.1:59649 to 127.0.0.1:59647 as dan using none
2019/01/15 00:09:24 packer: 2019/01/15 00:09:24 authentication attempt from 
127.0.0.1:59649 to 127.0.0.1:59647 as dan using publickey
2019/01/15 00:09:24 packer: 2019/01/15 00:09:24 ansible provisioner pty-req 
request
2019/01/15 00:09:24 packer: 2019/01/15 00:09:24 new env request: 
LANG=en_CA.UTF-8
2019/01/15 00:09:24 packer: 2019/01/15 00:09:24 new exec request: pkg install 
-y sudo python3
2019/01/15 00:09:24 packer: 2019/01/15 00:09:24 [DEBUG] Opening new ssh session
2019/01/15 00:09:24 packer: 2019/01/15 00:09:24 [DEBUG] starting remote 
command: pkg install -y sudo python3
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 [INFO] RPC endpoint: 
Communicator ended with: 0
2019/01/15 00:09:55 [INFO] 1985 bytes written for 'stdout'
2019/01/15 00:09:55 [INFO] 0 bytes written for 'stderr'
2019/01/15 00:09:55 [INFO] RPC client: Communicator ended with: 0
2019/01/15 00:09:55 [INFO] RPC endpoint: Communicator ended with: 0
2019/01/15 00:09:55 [INFO] 0 bytes written for 'stdin'
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 [INFO] 1985 bytes written for 
'stdout'
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 [INFO] 0 bytes written for 
'stderr'
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 [INFO] RPC client: Communicator 
ended with: 0
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 [INFO] 0 bytes written for 
'stdin'
2019/01/15 00:09:55 ui:     digitalocean: changed: [default]
2019/01/15 00:09:55 ui:     digitalocean:
2019/01/15 00:09:55 ui:     digitalocean: PLAY [Install default 
packages] ************************************************
2019/01/15 00:09:55 ui:     digitalocean:
2019/01/15 00:09:55 ui:     digitalocean: TASK [Gathering Facts] 
*********************************************************
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 new env request: 
LANG=en_CA.UTF-8
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 new exec request: /bin/sh -c 
'echo ~dan && sleep 0'
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 [DEBUG] Opening new ssh session
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 [DEBUG] starting remote 
command: /bin/sh -c 'echo ~dan && sleep 0'
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 [INFO] RPC endpoint: 
Communicator ended with: 0
2019/01/15 00:09:55 [INFO] 5 bytes written for 'stdout'
2019/01/15 00:09:55 [INFO] 0 bytes written for 'stderr'
2019/01/15 00:09:55 [INFO] RPC client: Communicator ended with: 0
2019/01/15 00:09:55 [INFO] RPC endpoint: Communicator ended with: 0
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 [INFO] 0 bytes written for 
'stderr'
2019/01/15 00:09:55 [INFO] 0 bytes written for 'stdin'
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 [INFO] 5 bytes written for 
'stdout'
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 [INFO] RPC client: Communicator 
ended with: 0
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 [INFO] 0 bytes written for 
'stdin'
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 new env request: 
LANG=en_CA.UTF-8
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 new exec request: /bin/sh -c '( 
umask 77 && mkdir -p "` echo 
~dan/.ansible/tmp/ansible-tmp-1547539795.637526-145875425955807 `" && echo 
ansible-tmp-1547539795.637526-145875425955807="` echo 
~dan/.ansible/tmp/ansible-tmp-1547539795.637526-145875425955807 `" ) && sleep 0'
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 [DEBUG] Opening new ssh session
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 [DEBUG] starting remote 
command: /bin/sh -c '( umask 77 && mkdir -p "` echo 
~dan/.ansible/tmp/ansible-tmp-1547539795.637526-145875425955807 `" && echo 
ansible-tmp-1547539795.637526-145875425955807="` echo 
~dan/.ansible/tmp/ansible-tmp-1547539795.637526-145875425955807 `" ) && sleep 0'
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 [INFO] RPC endpoint: 
Communicator ended with: 0
2019/01/15 00:09:55 [INFO] 110 bytes written for 'stdout'
2019/01/15 00:09:55 [INFO] 0 bytes written for 'stderr'
2019/01/15 00:09:55 [INFO] RPC client: Communicator ended with: 0
2019/01/15 00:09:55 [INFO] RPC endpoint: Communicator ended with: 0
2019/01/15 00:09:55 [INFO] 0 bytes written for 'stdin'
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 [INFO] 110 bytes written for 
'stdout'
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 [INFO] 0 bytes written for 
'stderr'
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 [INFO] RPC client: Communicator 
ended with: 0
2019/01/15 00:09:55 packer: 2019/01/15 00:09:55 [INFO] 0 bytes written for 
'stdin'
2019/01/15 00:09:56 packer: 2019/01/15 00:09:56 new env request: 
LANG=en_CA.UTF-8
2019/01/15 00:09:56 packer: 2019/01/15 00:09:56 new exec request: scp -t 
'~dan/.ansible/tmp/ansible-tmp-1547539795.637526-145875425955807/AnsiballZ_setup.py'
2019/01/15 00:09:56 packer: 2019/01/15 00:09:56 [DEBUG] Opening new ssh session
2019/01/15 00:09:56 packer: 2019/01/15 00:09:56 [INFO] 213668 bytes written for 
'uploadData'
2019/01/15 00:09:56 [INFO] 213668 bytes written for 'uploadData'
2019/01/15 00:09:56 packer: 2019/01/15 00:09:56 [DEBUG] Starting remote scp 
process:  scp -vt 
~dan/.ansible/tmp/ansible-tmp-1547539795.637526-145875425955807
2019/01/15 00:09:56 packer: 2019/01/15 00:09:56 [DEBUG] Started SCP session, 
beginning transfers...
2019/01/15 00:09:56 packer: 2019/01/15 00:09:56 [DEBUG] scp: Uploading 
AnsiballZ_setup.py: perms=C0600 size=213668
2019/01/15 00:09:56 packer: 2019/01/15 00:09:56 [DEBUG] SCP session complete, 
closing stdin pipe.
2019/01/15 00:09:56 packer: 2019/01/15 00:09:56 [DEBUG] Waiting for SSH session 
to complete.
2019/01/15 00:09:56 packer: 2019/01/15 00:09:56 [DEBUG] non-zero exit status: 1
2019/01/15 00:09:56 packer: 2019/01/15 00:09:56 [DEBUG] scp output:
2019/01/15 00:09:56 packer: 2019/01/15 00:09:56 Process exited with status 1
2019/01/15 00:09:56 ui:     digitalocean: fatal: [default]: FAILED! => 
{"msg": "failed to transfer file to 
/Users/dan/.ansible/tmp/ansible-local-15701azwwmhud/tmp219j5ny7 
~dan/.ansible/tmp/ansible-tmp-1547539795.637526-145875425955807/AnsiballZ_setup.py:\n\n\n"}
2019/01/15 00:09:56 ui:     digitalocean:        to retry, use: --limit 
@/Users/dan/Code/Infrastructure/Packer/DO-FreeBSD/playbook.retry
2019/01/15 00:09:56 ui:     digitalocean:
2019/01/15 00:09:56 ui:     digitalocean: PLAY RECAP 
*********************************************************************
2019/01/15 00:09:56 ui:     digitalocean: default                    : 
ok=1    changed=1    unreachable=0    failed=1
2019/01/15 00:09:56 ui:     digitalocean:
2019/01/15 00:09:56 packer: 2019/01/15 00:09:56 shutting down the SSH proxy
2019/01/15 00:09:56 [INFO] (telemetry) ending ansible
2019/01/15 00:09:56 ui: ==> digitalocean: Destroying droplet...
2019/01/15 00:09:56 ui: ==> digitalocean: Deleting temporary ssh 
key...
2019/01/15 00:09:57 [INFO] (telemetry) ending digitalocean
2019/01/15 00:09:57 ui error: Build 'digitalocean' errored: Error 
executing Ansible: Non-zero exit status: exit status 2
2019/01/15 00:09:57 Builds completed. Waiting on interrupt barrier...
2019/01/15 00:09:57 machine readable: error-count []string{"1"}
2019/01/15 00:09:57 ui error: 
==> Some builds didn't complete successfully and had errors:
2019/01/15 00:09:57 machine readable: digitalocean,error []string{"Error 
executing Ansible: Non-zero exit status: exit status 2"}
2019/01/15 00:09:57 ui error: --> digitalocean: Error executing Ansible: 
Non-zero exit status: exit status 2
2019/01/15 00:09:57 ui: 
==> Builds finished but no artifacts were created.
2019/01/15 00:09:57 [INFO] (telemetry) Finalizing.
2019/01/15 00:09:57 waiting for all plugin processes to complete...
2019/01/15 00:09:57 /usr/local/bin/packer: plugin process exited
2019/01/15 00:09:57 /usr/local/bin/packer: plugin process exited

Reply via email to