ployground / bsdploy

BSDploy is a tool to provision, configure and maintain FreeBSD jails.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ploy configure demo_jail: nodename nor servname provided, or not known

a-sk opened this issue · comments

Hello.
I was going through the quick start guide step by step and I encountered ansible related error.
When I'm trying to configure (ploy configure) ansible complains that it can't connect to host by it's name jailhost, so I put jailhost to my hosts file and it worked fine until I tried to provision a jail.
As far as I understand, jails do not expose ssh and ploy ssh connects through the jailhost, using ssh -W and I do not know how to tell ansible to do the same.

System info

Mac os 10.10.1

$ ploy -v
bsdploy 1.3 (/usr/local/lib/python2.7/site-packages)
ploy 1.0.2 (/usr/local/lib/python2.7/site-packages)
ploy-ansible 1.2.0 (/usr/local/lib/python2.7/site-packages)
ploy-ezjail 1.1.0 (/usr/local/lib/python2.7/site-packages)
ploy-fabric 1.1.0 (/usr/local/lib/python2.7/site-packages)
ploy-virtualbox 1.0.0 (/usr/local/lib/python2.7/site-packages)

Ploy output

$ ploy configure demo_jail

PLAY [jailhost-demo_jail] *****************************************************

GATHERING FACTS ***************************************************************
fatal: [jailhost-demo_jail] => {'msg': 'FAILED: [Errno 8] nodename nor servname provided, or not known', 'failed': True}

TASK: [install nginx] *********************************************************
FATAL: no hosts matched or all hosts have already failed -- aborting

Which version of ansible has been installed?

Sent from a phone, please excuse the brevity.

On 12.12.2014, at 01:27, Skurikhin Alexander notifications@github.com wrote:

Hello.
I was going through the quick start guide step by step and I encountered ansible related error.
When I'm trying to configure (ploy configure) ansible complains that it can't connect to host by it's name jailhost, so I put jailhost to my hosts file and it worked fine until I tried to provision a jail.
As far as I understand, jails do not expose ssh and ploy ssh connects through the jailhost, using ssh -W and I do not know how to tell ansible to do the same.

System info

Mac os 10.10.1

$ ploy -v
bsdploy 1.3 (/usr/local/lib/python2.7/site-packages)
ploy 1.0.2 (/usr/local/lib/python2.7/site-packages)
ploy-ansible 1.2.0 (/usr/local/lib/python2.7/site-packages)
ploy-ezjail 1.1.0 (/usr/local/lib/python2.7/site-packages)
ploy-fabric 1.1.0 (/usr/local/lib/python2.7/site-packages)
ploy-virtualbox 1.0.0 (/usr/local/lib/python2.7/site-packages)
Ploy output

$ ploy configure demo_jail

PLAY [jailhost-demo_jail] *****************************************************

GATHERING FACTS ***************************************************************
fatal: [jailhost-demo_jail] => {'msg': 'FAILED: [Errno 8] nodename nor servname provided, or not known', 'failed': True}

TASK: [install nginx] *********************************************************
FATAL: no hosts matched or all hosts have already failed -- aborting

Reply to this email directly or view it on GitHub.

Thanks for the quick response.

$ ansible --version
ansible 1.8
  configured module search path = /usr/share/ansible

I tried with ansible 1.7 and it worked just fine.

We just found out that 1.8 isn't compatible for now.

Please try to delete ansible and reinstall ansible with 1.7.2 (afair)

I'll update the tutorial asap.

Sent from a phone, please excuse the brevity.

On 12.12.2014, at 01:53, Skurikhin Alexander notifications@github.com wrote:

Thanks for the quick response.

$ ansible --version
ansible 1.8
configured module search path = /usr/share/ansible

Reply to this email directly or view it on GitHub.

Ok, thank you.

Has this been updated?

👍

@JMStudiosJoe & @gretel yes, this has been resolved since. bsdploy currently works with all versions of ansible >= 1.8

@tomster cool, thanks. i suggest having a comment in relation to the closing to prevent confusion. regards 🍧