Hi All,
I am trying to get packer running ansible and am wondering if there is a
fix for the following problem:-
packer itself is able to create an ami from a src
I'm new to this so probably got something wrong....
but
ive setup a basic test json file:-
{
"provisioners": [
{
"type": "ansible",
"user": "ec2-user",
"playbook_file": "./environment/tony/test.yml",
"sftp_command": "/usr/libexec/openssh/sftp-server -e"
}
],
"builders": [
{
"type": "amazon-ebs",
"region": "XXXXXXX",
"vpc_id": "XXXXXXX",
"subnet_id": "XXXXXXXXXXX",
"source_ami": "ami-02ace471",
"instance_type": "t2.medium",
"ssh_username": "ec2-user",
"ami_name": "packer - XXXXXX {{timestamp}}"
}
]
}
however i can see in the debug log that it is calling ansible playbook with
an inventory file that doesnt exists, when ansible tries to connect to
default it doesnt exist and fails to resolve. there is also some kind of
proxy thing going on, which i dont understand currently.
below is the debug
Any help greatly appreciated
Thanks in advance
Tony
2017/02/27 13:36:20 [INFO] Packer version: 0.12.2
2017/02/27 13:36:20 Packer Target OS/Arch: linux amd64
2017/02/27 13:36:20 Built with Go Version: go1.7.4
2017/02/27 13:36:20 Detected home directory from env var: /home/atnmi
2017/02/27 13:36:20 Using internal plugin for azure-arm
2017/02/27 13:36:20 Using internal plugin for null
2017/02/27 13:36:20 Using internal plugin for oneandone
2017/02/27 13:36:20 Using internal plugin for parallels-iso
2017/02/27 13:36:20 Using internal plugin for triton
2017/02/27 13:36:20 Using internal plugin for amazon-ebs
2017/02/27 13:36:20 Using internal plugin for amazon-ebsvolume
2017/02/27 13:36:20 Using internal plugin for file
2017/02/27 13:36:20 Using internal plugin for hyperv-iso
2017/02/27 13:36:20 Using internal plugin for virtualbox-iso
2017/02/27 13:36:20 Using internal plugin for vmware-iso
2017/02/27 13:36:20 Using internal plugin for vmware-vmx
2017/02/27 13:36:20 Using internal plugin for cloudstack
2017/02/27 13:36:20 Using internal plugin for docker
2017/02/27 13:36:20 Using internal plugin for googlecompute
2017/02/27 13:36:20 Using internal plugin for virtualbox-ovf
2017/02/27 13:36:20 Using internal plugin for amazon-chroot
2017/02/27 13:36:20 Using internal plugin for digitalocean
2017/02/27 13:36:20 Using internal plugin for parallels-pvm
2017/02/27 13:36:20 Using internal plugin for profitbricks
2017/02/27 13:36:20 Using internal plugin for qemu
2017/02/27 13:36:20 Using internal plugin for amazon-instance
2017/02/27 13:36:20 Using internal plugin for openstack
2017/02/27 13:36:20 Using internal plugin for powershell
2017/02/27 13:36:20 Using internal plugin for windows-restart
2017/02/27 13:36:20 Using internal plugin for chef-client
2017/02/27 13:36:20 Using internal plugin for chef-solo
2017/02/27 13:36:20 Using internal plugin for salt-masterless
2017/02/27 13:36:20 Using internal plugin for shell-local
2017/02/27 13:36:20 Using internal plugin for windows-shell
2017/02/27 13:36:20 Using internal plugin for ansible-local
2017/02/27 13:36:20 Using internal plugin for converge
2017/02/27 13:36:20 Using internal plugin for file
2017/02/27 13:36:20 Using internal plugin for puppet-masterless
2017/02/27 13:36:20 Using internal plugin for puppet-server
2017/02/27 13:36:20 Using internal plugin for ansible
2017/02/27 13:36:20 Using internal plugin for shell
2017/02/27 13:36:20 Using internal plugin for atlas
2017/02/27 13:36:20 Using internal plugin for checksum
2017/02/27 13:36:20 Using internal plugin for docker-save
2017/02/27 13:36:20 Using internal plugin for docker-tag
2017/02/27 13:36:20 Using internal plugin for googlecompute-export
2017/02/27 13:36:20 Using internal plugin for vagrant
2017/02/27 13:36:20 Using internal plugin for docker-push
2017/02/27 13:36:20 Using internal plugin for compress
2017/02/27 13:36:20 Using internal plugin for docker-import
2017/02/27 13:36:20 Using internal plugin for manifest
2017/02/27 13:36:20 Using internal plugin for shell-local
2017/02/27 13:36:20 Using internal plugin for vsphere
2017/02/27 13:36:20 Using internal plugin for amazon-import
2017/02/27 13:36:20 Using internal plugin for artifice
2017/02/27 13:36:20 Using internal plugin for vagrant-cloud
2017/02/27 13:36:20 Detected home directory from env var: /home/atnmi
2017/02/27 13:36:20 Attempting to open config file:
/home/atnmi/.packerconfig
2017/02/27 13:36:20 [WARN] Config file doesn't exist:
/home/atnmi/.packerconfig
2017/02/27 13:36:20 Packer config: &{DisableCheckpoint:false
DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000
Builders:map[azure-arm:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm
triton:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton
hyperv-iso:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso
virtualbox-iso:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso
amazon-instance:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance
parallels-iso:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso
vmware-iso:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso
amazon-chroot:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot
digitalocean:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean
qemu:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu
virtualbox-ovf:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf
null:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null
oneandone:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone
amazon-ebsvolume:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume
file:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file
cloudstack:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack
docker:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker
googlecompute:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute
profitbricks:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks
amazon-ebs:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs
vmware-vmx:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx
parallels-pvm:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm
openstack:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack]
PostProcessors:map[docker-save:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save
docker-tag:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag
shell-local:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local
vsphere:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere
atlas:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas
artifice:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice
vagrant-cloud:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud
checksum:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum
googlecompute-export:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export
vagrant:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant
docker-push:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push
compress:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress
docker-import:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import
manifest:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest
amazon-import:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import]
Provisioners:map[ansible:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible
powershell:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell
windows-restart:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart
chef-solo:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo
windows-shell:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell
file:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file
puppet-server:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server
chef-client:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client
ansible-local:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local
converge:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge
shell-local:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local
salt-masterless:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless
puppet-masterless:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless
shell:/home/atnmi/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell]}
2017/02/27 13:36:20 Setting cache directory: /git/universepilot/packer_cache
2017/02/27 13:36:20 Detected home directory from env var: /home/atnmi
2017/02/27 13:36:20 Loading builder: amazon-ebs
2017/02/27 13:36:20 Plugin could not be found. Checking same directory as
executable.
2017/02/27 13:36:20 Current exe path: /home/atnmi/packer/packer
2017/02/27 13:36:20 Creating plugin client for path:
/home/atnmi/packer/packer
2017/02/27 13:36:20 Starting plugin: /home/atnmi/packer/packer
[]string{"/home/atnmi/packer/packer", "plugin", "packer-builder-amazon-ebs"}
2017/02/27 13:36:20 Waiting for RPC address for: /home/atnmi/packer/packer
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 [INFO] Packer version:
0.12.2
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Packer Target OS/Arch:
linux amd64
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Built with Go Version:
go1.7.4
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Detected home directory
from env var: /home/atnmi
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Attempting to open config
file: /home/atnmi/.packerconfig
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 [WARN] Config file doesn't
exist: /home/atnmi/.packerconfig
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Packer config:
&{DisableCheckpoint:false DisableCheckpointSignature:false
PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[]
Provisioners:map[]}
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Setting cache directory:
/git/universepilot/packer_cache
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 args:
[]string{"packer-builder-amazon-ebs"}
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Plugin minimum port: 10000
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Plugin maximum port: 25000
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Detected home directory
from env var: /home/atnmi
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Plugin address: unix
/tmp/packer-plugin831698476
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Waiting for connection...
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Serving a plugin
connection...
2017/02/27 13:36:20 Loading provisioner: ansible
2017/02/27 13:36:20 Plugin could not be found. Checking same directory as
executable.
2017/02/27 13:36:20 Current exe path: /home/atnmi/packer/packer
2017/02/27 13:36:20 Creating plugin client for path:
/home/atnmi/packer/packer
2017/02/27 13:36:20 Starting plugin: /home/atnmi/packer/packer
[]string{"/home/atnmi/packer/packer", "plugin",
"packer-provisioner-ansible"}
2017/02/27 13:36:20 Waiting for RPC address for: /home/atnmi/packer/packer
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 [INFO] Packer version:
0.12.2
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Packer Target OS/Arch:
linux amd64
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Built with Go Version:
go1.7.4
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Detected home directory
from env var: /home/atnmi
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Attempting to open config
file: /home/atnmi/.packerconfig
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 [WARN] Config file doesn't
exist: /home/atnmi/.packerconfig
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Packer config:
&{DisableCheckpoint:false DisableCheckpointSignature:false
PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[]
Provisioners:map[]}
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Setting cache directory:
/git/universepilot/packer_cache
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 args:
[]string{"packer-provisioner-ansible"}
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Plugin minimum port: 10000
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Plugin maximum port: 25000
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Detected home directory
from env var: /home/atnmi
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Plugin address: unix
/tmp/packer-plugin800265621
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Waiting for connection...
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Serving a plugin
connection...
2017/02/27 13:36:20 ui: amazon-ebs output will be in this color.
2017/02/27 13:36:20 ui:
2017/02/27 13:36:20 Build debug mode: false
2017/02/27 13:36:20 Force build: false
2017/02/27 13:36:20 On error:
2017/02/27 13:36:20 Preparing build: amazon-ebs
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 Config:
{PackerConfig:{PackerBuildName:amazon-ebs PackerBuilderType:amazon-ebs
PackerDebug:false PackerForce:false PackerOnError: PackerUserVars:map[]}
AccessConfig:{AccessKey: SecretKey: RawRegion:eu-west-1
SkipValidation:false Token: ProfileName:} AMIConfig:{AMIName:packer -
universepilot 1488202580 AMIDescription: AMIVirtType: AMIUsers:[]
AMIGroups:[] AMIProductCodes:[] AMIRegions:[] AMISkipRegionValidation:false
AMITags:map[] AMIEnhancedNetworking:false AMIForceDeregister:false
AMIForceDeleteSnapshot:false AMIEncryptBootVolume:false AMIKmsKeyId:
SnapshotTags:map[] SnapshotUsers:[] SnapshotGroups:[]}
BlockDevices:{AMIBlockDevices:{AMIMappings:[]}
LaunchBlockDevices:{LaunchMappings:[]}}
RunConfig:{AssociatePublicIpAddress:false AvailabilityZone:
EbsOptimized:false IamInstanceProfile: InstanceType:t2.medium RunTags:map[]
SourceAmi:ami-02ace471 SourceAmiFilter:{Filters:map[] Owners:[]
MostRecent:false} SpotPrice: SpotPriceAutoProduct:
DisableStopInstance:false SecurityGroupId: SecurityGroupIds:[]
SubnetId:subnet-5db53405
TemporaryKeyPairName:packer_58b42b54-0198-5c39-3996-e7f317959470 UserData:
UserDataFile: WindowsPasswordTimeout:10m0s VpcId:vpc-de1d7eba
InstanceInitiatedShutdownBehavior:stop Comm:{Type:ssh SSHHost: SSHPort:22
SSHUsername:ec2-user SSHPassword: SSHPrivateKey: SSHPty:false
SSHTimeout:5m0s SSHAgentAuth:false SSHDisableAgent:false
SSHHandshakeAttempts:10 SSHBastionHost: SSHBastionPort:0
SSHBastionUsername: SSHBastionPassword: SSHBastionPrivateKey:
SSHFileTransferMethod:scp WinRMUser: WinRMPassword: WinRMHost: WinRMPort:0
WinRMTimeout:0s WinRMUseSSL:false WinRMInsecure:false
WinRMTransportDecorator:<nil>} SSHKeyPairName: SSHPrivateIp:false}
VolumeRunTags:map[] ctx:{Data:<nil> Funcs:map[clean_ami_name:0x918c30]
UserVariables:map[] EnableEnv:false BuildName:amazon-ebs
BuildType:amazon-ebs TemplatePath:/git/universepilot/packer/test.json}}
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 ansible-playbook version:
2.2.1.0
2017/02/27 13:36:20 Waiting on builds to complete...
2017/02/27 13:36:20 Starting build run: amazon-ebs
2017/02/27 13:36:20 Running builder: amazon-ebs
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 [INFO] Finding AZ for the
given subnet 'subnet-5db53405'
2017/02/27 13:36:20 packer: 2017/02/27 13:36:20 [INFO] AZ found:
'eu-west-1c'
2017/02/27 13:36:20 ui: ==> amazon-ebs: Prevalidating AMI Name...
2017/02/27 13:36:22 packer: 2017/02/27 13:36:22 Using AMI Filters {
2017/02/27 13:36:22 packer: ImageIds: ["ami-02ace471"]
2017/02/27 13:36:22 packer: }
2017/02/27 13:36:23 ui: amazon-ebs: Found Image ID: ami-02ace471
2017/02/27 13:36:23 ui: ==> amazon-ebs: Creating temporary keypair:
packer_58b42b54-0198-5c39-3996-e7f317959470
2017/02/27 13:36:23 ui: ==> amazon-ebs: Creating temporary security group
for this instance...
2017/02/27 13:36:23 packer: 2017/02/27 13:36:23 Temporary group name:
packer 58b42b57-1dd7-181c-220e-46c7af902bbf
2017/02/27 13:36:23 ui: ==> amazon-ebs: Authorizing access to port 22 the
temporary security group...
2017/02/27 13:36:23 packer: 2017/02/27 13:36:23 [DEBUG] Waiting for
temporary security group: sg-6a574b0c
2017/02/27 13:36:23 packer: 2017/02/27 13:36:23 [DEBUG] Found security
group sg-6a574b0c
2017/02/27 13:36:23 ui: ==> amazon-ebs: Launching a source AWS instance...
2017/02/27 13:36:24 ui: amazon-ebs: Instance ID: i-01f66af55efa885eb
2017/02/27 13:36:24 ui: ==> amazon-ebs: Waiting for instance
(i-01f66af55efa885eb) to become ready...
2017/02/27 13:36:24 packer: 2017/02/27 13:36:24 Waiting for state to
become: running
2017/02/27 13:36:24 packer: 2017/02/27 13:36:24 Using 2s as polling delay
(change with AWS_POLL_DELAY_SECONDS)
2017/02/27 13:36:24 packer: 2017/02/27 13:36:24 Allowing 300s to complete
(change with AWS_TIMEOUT_SECONDS)
2017/02/27 13:36:41 ui: ==> amazon-ebs: Adding tags to source instance
2017/02/27 13:36:41 packer: 2017/02/27 13:36:41 [DEBUG] Creating tag
Name=Packer Builder
2017/02/27 13:36:41 packer: 2017/02/27 13:36:41 [INFO] Not using winrm
communicator, skipping get password...
2017/02/27 13:36:41 packer: 2017/02/27 13:36:41 [INFO] Waiting for SSH, up
to timeout: 5m0s
2017/02/27 13:36:41 ui: ==> amazon-ebs: Waiting for SSH to become
available...
2017/02/27 13:36:56 packer: 2017/02/27 13:36:56 [DEBUG] TCP connection to
SSH ip/port failed: dial tcp 10.33.21.51:22: i/o timeout
2017/02/27 13:37:16 packer: 2017/02/27 13:37:16 [DEBUG] TCP connection to
SSH ip/port failed: dial tcp 10.33.21.51:22: i/o timeout
2017/02/27 13:37:21 packer: 2017/02/27 13:37:21 [INFO] Attempting SSH
connection...
2017/02/27 13:37:21 packer: 2017/02/27 13:37:21 reconnecting to TCP
connection for SSH
2017/02/27 13:37:21 packer: 2017/02/27 13:37:21 handshaking with SSH
2017/02/27 13:37:22 packer: 2017/02/27 13:37:22 handshake complete!
2017/02/27 13:37:22 packer: 2017/02/27 13:37:22 opening new ssh session
2017/02/27 13:37:22 packer: 2017/02/27 13:37:22 [INFO] agent forwarding
enabled
2017/02/27 13:37:22 ui: ==> amazon-ebs: Connected to SSH!
2017/02/27 13:37:22 packer: 2017/02/27 13:37:22 Running the provision hook
2017/02/27 13:37:22 ui: ==> amazon-ebs: Provisioning with Ansible...
2017/02/27 13:37:23 packer: 2017/02/27 13:37:23 Executing Ansible:
*ansible-playbook
/git/universepilot/environment/tony/test.yml -i
/tmp/packer-provisioner-ansible107521167 --private-key
/tmp/ansible-key723215856*
2017/02/27 13:37:23 packer: 2017/02/27 13:37:23 SSH proxy: serving on
127.0.0.1:33920
2017/02/27 13:37:23 ui: amazon-ebs:
2017/02/27 13:37:23 ui: amazon-ebs: PLAY [all]
*********************************************************************
2017/02/27 13:37:23 ui: amazon-ebs:
2017/02/27 13:37:23 ui: amazon-ebs: TASK [setup]
*******************************************************************
2017/02/27 13:37:23 ui: amazon-ebs: fatal: [default]: UNREACHABLE! =>
{"changed": false, "msg": "Failed to connect to the host via ssh: ssh:
Could not resolve hostname default: Name or service not known\r\n",
"unreachable": true}
2017/02/27 13:37:23 ui: amazon-ebs:
2017/02/27 13:37:23 ui: amazon-ebs: PLAY RECAP
*********************************************************************
2017/02/27 13:37:23 ui: amazon-ebs: default : ok=0
changed=0 unreachable=1 failed=0
2017/02/27 13:37:23 ui: amazon-ebs:
2017/02/27 13:37:23 packer: 2017/02/27 13:37:23 shutting down the SSH proxy
2017/02/27 13:37:23 ui: ==> amazon-ebs: Terminating the source AWS
instance...
2017/02/27 13:37:24 packer: 2017/02/27 13:37:24 Waiting for state to
become: terminated
2017/02/27 13:37:24 packer: 2017/02/27 13:37:24 Using 2s as polling delay
(change with AWS_POLL_DELAY_SECONDS)
2017/02/27 13:37:24 packer: 2017/02/27 13:37:24 Allowing 300s to complete
(change with AWS_TIMEOUT_SECONDS)
2017/02/27 13:37:54 ui: ==> amazon-ebs: Cleaning up any extra volumes...
2017/02/27 13:37:55 ui: ==> amazon-ebs: No volumes to clean up, skipping
2017/02/27 13:37:55 ui: ==> amazon-ebs: Deleting temporary security group...
2017/02/27 13:37:56 ui: ==> amazon-ebs: Deleting temporary keypair...
2017/02/27 13:37:56 ui error: Build 'amazon-ebs' errored: Error executing
Ansible: Non-zero exit status: exit status 4
2017/02/27 13:37:56 Builds completed. Waiting on interrupt barrier...
2017/02/27 13:37:56 machine readable: error-count []string{"1"}
2017/02/27 13:37:56 ui error:
==> Some builds didn't complete successfully and had errors:
2017/02/27 13:37:56 machine readable: amazon-ebs,error []string{"Error
executing Ansible: Non-zero exit status: exit status 4"}
2017/02/27 13:37:56 ui error: --> amazon-ebs: Error executing Ansible:
Non-zero exit status: exit status 4
2017/02/27 13:37:56 ui:
==> Builds finished but no artifacts were created.
2017/02/27 13:37:56 waiting for all plugin processes to complete...
2017/02/27 13:37:56 /home/atnmi/packer/packer: plugin process exited
2017/02/27 13:37:56 /home/atnmi/packer/packer: plugin process exited
--
*This e-mail and any attachments are confidential and intended solely for
the use of the addressee only. If you have received this message in error,
you must not copy, distribute or disclose the contents; please notify the
sender immediately and delete the message.This message is attributed to the
sender and may not necessarily reflect the view of Travis Perkins Trading
Company Limited, 733503, Lodge Way House, Lodge Way, Harlestone Road,
Northampton, NN5 7UG or its parent company Travis Perkins plc (Registered
in England No. 824821; Lodge Way House, Lodge Way, Harlestone Road,
Northampton, NN5 7UG; VAT number 408556737) and any of its subsidiaries.
Agreements binding Travis Perkins Trading Company Limited may not be
concluded by means of e-mail communication.E-mail transmissions are not
secure and Travis Perkins Trading accepts no responsibility for changes
made to this message after it was sent. Whilst steps have been taken to
ensure that this message is virus free, Travis Perkins Trading accepts no
liability for infection and recommends that you scan this e-mail and any
attachments.*
--
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/64c43d66-0c56-4c03-a2fb-8c02375f4111%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.