Re: [ansible-project] frequent ssh drops due to "Connection timed out during banner exchange"

2014-06-30 Thread Nick Evgeniev
er waiting for approx 1 sec. On Thursday, 26 June 2014 14:29:37 UTC-5, Nick Evgeniev wrote: > > Hi, > > MaxStartups is a great idea, thanks! will ask sysadmins to adjust that > setting. also no reason not to use -W other than 'old school' pattern. > switched to it

Re: [ansible-project] checking if particular file exists locally before go

2014-06-30 Thread Nick Evgeniev
eps depending whether such file exist or > not." > > when statement > > "basically to define variable and condition other steps on it." > > include_vars + when statement > > "unfortunately stat module is limited to remote host.." > > local_action >

[ansible-project] checking if particular file exists locally before go

2014-06-30 Thread Nick Evgeniev
hi, given ansible role directory layout: files vars tasks ... and having files/foo/hostname/somefile I want not only be able to copy this file like: - copy src=foo/{{ ansible_hostname }}/somefile dest=... but also to limit certain steps depending whether such file exist or not... basically to

Re: [ansible-project] frequent ssh drops due to "Connection timed out during banner exchange"

2014-06-26 Thread Nick Evgeniev
that proxy command. Is there any reason why > you cannot proxy using the -W argument for proxying? I'm curious if the > proxy command is wonky and causes some sort of connection problem with > ansible's default SSH configuration settings. > > > On Wed, Jun 25, 2014 at

Re: [ansible-project] Re: looping over set of tasks (roles?)

2014-06-26 Thread Nick Evgeniev
to his problem. What he actually >>> needs is a way to repeat a number of different, load generating tasks on >>> host B until his java app on host A has been warmed up for good. It is that >>> repetition that Ansible cannot currently handle. >>> >>>

Re: [ansible-project] Re: looping over set of tasks (roles?)

2014-06-26 Thread Nick Evgeniev
; > I would benefit by a more specific example so I can understand what you > mean. > > > On Wed, Jun 25, 2014 at 5:13 PM, Nick Evgeniev > wrote: > >> yep. exactly the case. at the moment this logic is implemented using .sh >> script.. so looks like the best optio

[ansible-project] Re: looping over set of tasks (roles?)

2014-06-25 Thread Nick Evgeniev
yep. exactly the case. at the moment this logic is implemented using .sh script.. so looks like the best option is to mix .sh with ansible (for pure deployment tasks). Will take a look into Fabric .. though I'd like to avoid introducing new tool for every simple task :) On Wednesday, 25 June 20

[ansible-project] cleanup playbook

2014-06-25 Thread Nick Evgeniev
hi, What is the best way of having a 'cleanup' playbook in ansible and having it run unconditionally after the main one? I mean I want to have set of tasks each which will be run after completion (or failure) of main play book w/o 'fail fast' logic (meaning there will be one attempt made to ru

[ansible-project] looping over set of tasks (roles?)

2014-06-25 Thread Nick Evgeniev
Hi, I need to perform (in a loop) some tasks on host 'A' till something happens on host 'B'. What is the 'best practice' of doing such things with ansible? I saw loops over single task but this is not what I need (presumably), unless I write a shell script which perform all the tasks by connect

Re: [ansible-project] frequent ssh drops due to "Connection timed out during banner exchange"

2014-06-25 Thread Nick Evgeniev
out the setup, OSes involved (managed > or managing), or network? > > > > > > > On Tue, Jun 24, 2014 at 6:23 PM, Nick Evgeniev > wrote: > >> Hi, >> >> For some reason if I'm connecting to the host using ansible connection is >> been dro

[ansible-project] frequent ssh drops due to "Connection timed out during banner exchange"

2014-06-24 Thread Nick Evgeniev
Hi, For some reason if I'm connecting to the host using ansible connection is been dropped frequently with "Connection timed out during banner exchange" message.. Any hints? pls check output below.. again if I just 'ssh lb0014' everything is fine GATHERING FACTS *

[ansible-project] unarchive single file. unarchive bug?

2014-06-13 Thread Nick Evgeniev
Hi, any clue how to unarchive single file (i.e. file_name.bz2 -> file_name) other than copy then call bunzip? btw there're no problems with multifile archives... also: set_fact: fact=value doesn't work, while set_fact: fact: value does. shouldn't docs be updated? -- You received this

Re: [ansible-project] json module not found with python 2.7

2014-05-29 Thread Nick Evgeniev
p://docs.ansible.com/intro_installation.html#managed-node-requirements > > -- > Matt Martz > ma...@sivel.net > > On May 29, 2014 at 9:06:38 AM, Nick Evgeniev (nevg...@gmail.com) > wrote: > > Hi, > new to ansible so may be it's somewhere in FAQ... just installed ansible

[ansible-project] json module not found with python 2.7

2014-05-29 Thread Nick Evgeniev
Hi, new to ansible so may be it's somewhere in FAQ... just installed ansible: Python 2.7.5 ansible 1.6.2 Darwin 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64 $ ansible -i ./ans_hosts all -m ping labgw1 | FAILED >> { "failed