Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Ansible provisioner cannot connect #63

Open
srtonz opened this issue Apr 9, 2017 · 2 comments
Open

Ansible provisioner cannot connect #63

srtonz opened this issue Apr 9, 2017 · 2 comments

Comments

@srtonz
Copy link

srtonz commented Apr 9, 2017

Something my colleague has come across recently trying to provision our container on an EC2 instance.

$ lxdock provision
==> default: Provisioning container "default"...
==> default: Provisioning with ansible
PLAY [all] *********************************************************************

TASK [setup] *******************************************************************
fatal: [10.0.3.31]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Permission denied (publickey,password).\r\n", "unreachable": true}
	to retry, use: --limit @/home/ubuntu/growerview/provision/main.retry

Running lxdock shell works fine though and drops us right into the shell, so I suspect that maybe a key isn't injected properly?

I don't yet know how to reproduce it, as things work fine locally, but tend to not work on a clean aws ec2 machine. This happens on Ubuntu 16.10, ansible 2.2.2.0 and lxdock 0.2.0

I'll investigate further, but thought I'd throw it in here in case someone has seen it before

@ghost
Copy link

ghost commented Jul 10, 2017

After #94, this issue will become irrelevant.

@ysolis
Copy link

ysolis commented Sep 27, 2017

@GeoTob which one is your ssh config to the AWS instance ? ForwardAgent by default ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants