Re: [ansible-project] Re: v1.6.8 ERROR: a duplicate parameter was found in the argument string

2014-11-07 Thread vineet daniel
hi i am using 1.7.2 only. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to

[ansible-project] For those at Amazon ReInvent Next Week in Las Vegas

2014-11-07 Thread Michael DeHaan
We'll have a booth (#1038) and I should be there a fair amount of the time. https://reinvent.awsevents.com/files/reInvent-Maps.pdf Come by and say hey! I'm told there will be shirts (and also hats, but apparently the cowsay one was vetoedawww...) as well. --Michael -- You received this me

Re: [ansible-project] Re: Weird /tmp file issue

2014-11-07 Thread Paul Becker
I'm not running pipelining, but I am running on CentOS. In any case, I'm up and running now. Thanks, Paul -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to an

Re: [ansible-project] Re: Weird /tmp file issue

2014-11-07 Thread Toshio Kuratomi
Ah, mention of ControlMaster makes me think of this: https://groups.google.com/forum/#!searchin/ansible-project/controlpersist/ansible-project/QUdxNK1zEH0/rQKnO827FUgJ Do you have pipelining enabled? If so, you might be running into the combination of updated CentOS6 openssh + pipelining bug that

Re: [ansible-project] ansible -m setup takes extra 2 min on Fedora 20

2014-11-07 Thread Toshio Kuratomi
Circling around to where we started here, @pixelfairy, was Scott's suggestion about FQDN helpful? Were you able to work around the issue by adding one for the VM? -Toshio On Sun, Nov 2, 2014 at 4:24 AM, pixel fairy wrote: > the setup module (and any playbooks) takes an extra 2 min for a fedora

Re: [ansible-project] Re: Weird /tmp file issue

2014-11-07 Thread Paul Becker
Ok, here's a followup. I added a statement to print the contents of the result variable in _make_tmp_path (in /runner/__init__.py) and then ran my playbook. The output is kind of long, but here it is: <10.250.1.55> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPe

Re: [ansible-project] variable precedence seems not working as intended

2014-11-07 Thread Brian Coca
what version of ansible? I just tested this and play vars override inventory (the one exception is ansible_ vars which are normally used for a particular host's connection info). On Fri, Nov 7, 2014 at 7:35 AM, Piotr Gosławski wrote: > From > http://docs.ansible.com/playbooks_variables.html#vari

Re: [ansible-project] Nagios Module allows setting downtimes for Nagios Service Groups?

2014-11-07 Thread Brian Coca
It seems many of the functions in the module were not referenced nor made accessible. There was talk in IRC about others adding the 'hidden' functionality to the module. On Thu, Nov 6, 2014 at 12:43 PM, Michael Gröning wrote: > Hi, > > the docs don't make any remarks regarding the setting of do

Re: [ansible-project] Suppress output of task?

2014-11-07 Thread John Oliver
No, no_log just suppresses logging. Already found and tried it :-) -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.c

Re: [ansible-project] Suppress output of task?

2014-11-07 Thread Hakisho Nukama
On Fri, Nov 7, 2014 at 6:14 PM, John Oliver wrote: > There are some tasks I run to collect info, and if they fail, oh well... I > have ignore_errors: true in there. But sometimes there could be a lot of > output from a "failed" task that I just don't want to see. How can I tell > my task to not

[ansible-project] Nagios Module allows setting downtimes for Nagios Service Groups?

2014-11-07 Thread Michael Gröning
Hi, the docs don't make any remarks regarding the setting of downtimes for whole service groups, but the code has a function that seems to do exactly althoug it is not referenced anywhere in else in the code. My Question is: am I holding the Module wrong or is this fumction not implemented in

[ansible-project] variable precedence seems not working as intended

2014-11-07 Thread Piotr Gosławski
>From http://docs.ansible.com/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable If multiple variables of the same name are defined in different places, > they win in a certain order, which is: > * -e variables always win * then comes "most everything else" * then comes v

[ansible-project] Inventory: IP's of all group members except self

2014-11-07 Thread Dirk Louwers
Hi, I just started out experimenting with roles from Ansible Galaxy. I came across a role that required the hosts of all other instances of this server. Since I keep all of them in the same group I was wondering how I can pass all of a groups IP's to a role except for the machine's own. Please

Re: [ansible-project] Re: EC2 - Delete on termination

2014-11-07 Thread Carlos V
Hi James, thanks for your reply. That actually was me! I might still pursue adding the option as my first contribution as I'm trying to learn more about developing Ansible modules. On Friday, November 7, 2014 7:47:37 AM UTC-8, James Cammarata wrote: > > Hi Carlos, > > We actually had someone bri

[ansible-project] Suppress output of task?

2014-11-07 Thread John Oliver
There are some tasks I run to collect info, and if they fail, oh well... I have ignore_errors: true in there. But sometimes there could be a lot of output from a "failed" task that I just don't want to see. How can I tell my task to not echo back any output to stdout? -- You received this me

Re: [ansible-project] Re: Ansible copy module takes lot of time on same machine

2014-11-07 Thread Ethan Collins
Hi Michael, I looked into the link. Note that I don't have ssh 5.6+ to use ControlPersist feature. Tried with paramiko, but with no change. #1 In my first query, I had minimized the problem to the copy module. Copy module takes ~5 secs while scp takes < 1sec. I tried several options, but with

Re: [ansible-project] Is it possible to provide options to ssh to enable tty?

2014-11-07 Thread craig w
I found the answer (thanks to Faux in irc), in ansible.cfg you can set specify "ssh_args" if you're using OpenSSH (which I'm not now but will once I upgrade to a newer OS or version of OpenSSH). In my case, I'd add the following to ansible.cfg ssh_args = -t -t On Fri, Nov 7, 2014 at 11:51 AM, To

Re: [ansible-project] Is it possible to provide options to ssh to enable tty?

2014-11-07 Thread Toshio Kuratomi
On Thu, Nov 6, 2014 at 10:40 AM, Craig Wickesser wrote: > When I SSH into a host it requires tty to perform sudo commands, is it > possible to tell ansible to use "-t" or "-t -t" when SSHing to a host? I'm > also on CentOS6 so it's using paramiko. > Hi, I'm afraid I don't quite understand the prob

Re: [ansible-project] ansible -m setup takes extra 2 min on Fedora 20

2014-11-07 Thread Toshio Kuratomi
On Fri, Nov 7, 2014 at 6:14 AM, Michael DeHaan wrote: > Interesting - so it's not about fact gathering at all. > > Experimentation to see if regular SSH commands have issues with first > connections would be welcome. > > It might result in the need to file a ticket on the distro. > I'm still not

[ansible-project] Re: Setting Ansible on Fedora

2014-11-07 Thread skinnedknuckles
Sorry, I should have been more explicit. It is working now. 123.123.123.123 | success>>{ "changed": false, "ping": "pong" } On Thursday, October 9, 2014 12:32:33 PM UTC-5, skinnedknuckles wrote: > > I'm using Fedora 20 and have failed to get Ansible working properly. Here > are the co

Re: [ansible-project] ansible -m setup takes extra 2 min on Fedora 20

2014-11-07 Thread Toshio Kuratomi
On Wed, Nov 5, 2014 at 2:50 PM, Greg Andrews wrote: > > Toshio Kuratomi wrote: >> >> If I have >> only one line in my /etc/hosts file: >> >> 127.0.0.1 localhost >> >> Running: time ansible all -i "localhost," -m setup -c local >> >> takes anywhere from 0.9 seconds to 15 seconds. >> >> Adding a

Re: [ansible-project] Re: Setting Ansible on Fedora

2014-11-07 Thread Michael DeHaan
It's hard to tell what "not working" means, can you share output in these cases? On Fri, Nov 7, 2014 at 10:28 AM, skinnedknuckles < andersonjonatha...@gmail.com> wrote: > There must be a problem with my encryption because when I run this line in > powershell it works. > > winrm set winrm/conf

Re: [ansible-project] Re: group_vars - is this supported?

2014-11-07 Thread Tennis Smith
Thanks, guys. -T On Friday, November 7, 2014 10:06:42 AM UTC-6, Serge van Ginderachter wrote: > > > On 7 November 2014 16:56, Tennis Smith > > wrote: > >> I'm not sure what "one level" means. > > > ​I mean, for a group 'tomcat' you can have a file tomcat, OR a dirctory > tomcat. You cannot hav

Re: [ansible-project] Re: group_vars - is this supported?

2014-11-07 Thread Serge van Ginderachter
On 7 November 2014 16:56, Tennis Smith wrote: > I'm not sure what "one level" means. ​I mean, for a group 'tomcat' you can have a file tomcat, OR a dirctory tomcat. You cannot have another directory beneath tomcat.​ > If I read the docs correctly, the group_vars dir can (should?) be inside >

Re: [ansible-project] Re: group_vars - is this supported?

2014-11-07 Thread Michael DeHaan
One level means group_vars/foo.yml or group_vars/foo/a.yml and group_vars/foo/b.yml is ok group_vars/foo/some_directory/a.yml will not find the data in a.yml On Fri, Nov 7, 2014 at 10:56 AM, Tennis Smith wrote: > > > Thanks for the reply. > > I'm not sure what "one level" means. If I rea

[ansible-project] Re: group_vars - is this supported?

2014-11-07 Thread Tennis Smith
Thanks for the reply. I'm not sure what "one level" means. If I read the docs correctly, the group_vars dir can (should?) be inside the inventory directory. If that is true, then how can one level work? -T On Thursday, November 6, 2014 3:59:08 PM UTC-6, Tennis Smith wrote: > > > > Can grou

Re: [ansible-project] Re: EC2 - Delete on termination

2014-11-07 Thread James Cammarata
Hi Carlos, We actually had someone bring this up in IRC the other day (perhaps it was you?), asking if they could pursue adding the option to delete the volumes as a specific parameter for the module too, so be on the lookout for that. Beyond that, if you continue seeing any problems with this, pl

Re: [ansible-project] Templates - Create, but do NOT update

2014-11-07 Thread James Cammarata
Hi Akos, The template module (being part of the file module family), does support the use of `force=no`, meaning the file will not be replaced if it already exists. This is not documented on that modules page, which we will get updated. Thanks! On Wed, Nov 5, 2014 at 10:44 PM, Akos Vandra wrote

[ansible-project] Re: Connection reset by peer

2014-11-07 Thread skinnedknuckles
There must be a problem with my encryption because when I run this line in powershell it works. winrm set winrm/config/service '@{AllowUnencrypted="true"}' On Tuesday, October 14, 2014 2:16:01 PM UTC-5, skinnedknuckles wrote: > > I've been trying to get win_ping to work for weeks now so I'd be

[ansible-project] Re: win_ping issue

2014-11-07 Thread skinnedknuckles
There must be a problem with my encryption because when I run this line in powershell it works. winrm set winrm/config/service '@{AllowUnencrypted="true"}' On Wednesday, September 24, 2014 9:51:28 AM UTC-5, skinnedknuckles wrote: > > > I'm having trouble getting win_ping to work. Here is my in

[ansible-project] Re: Setting Ansible on Fedora

2014-11-07 Thread skinnedknuckles
There must be a problem with my encryption because when I run this line in powershell it works. winrm set winrm/config/service '@{AllowUnencrypted="true"}' On Thursday, October 9, 2014 12:32:33 PM UTC-5, skinnedknuckles wrote: > > I'm using Fedora 20 and have failed to get Ansible working prope

[ansible-project] Re: Using Ansible with remote nodes running Windows 7

2014-11-07 Thread skinnedknuckles
There must be a problem with my encryption because when I run this line in powershell it works. winrm set winrm/config/service '@{AllowUnencrypted="true"}' On Friday, October 24, 2014 1:05:32 PM UTC-5, skinnedknuckles wrote: > > Has anyone succeeded at running ansible with a remote node running

Re: [ansible-project] Re: Nested loops with subelements

2014-11-07 Thread Ananda Debnath
Thanks for looking Michael, I was looking for an intuitive way for expressing nested variables in this use case. In my group vars, I specify 3 ec2 region/ami specs: ec2_specs: - { region: "us-east-1", ami: "ami-b66ed3de", count: 1, type: "t2.micro" } - { region: "us-west-1", ami: "ami-b56e64

Re: [ansible-project] copy module ignores --check flag for file params when md5sums are the same -- Not Cool!

2014-11-07 Thread Sean McGowan
On Friday, November 7, 2014 9:25:43 AM UTC-5, Michael DeHaan wrote: > > Can you please be explicit about what the "not a very cool behavior" is ? > no problem. what the example below shows is that when using the copy module with file parameters (e.g. mode, owner, group) that the --check flag

Re: [ansible-project] Re: extra_vars don't override inventory variables in templates (continuing #9242)

2014-11-07 Thread Hagai Kariti
I gave two example playbooks in this thread and in the github issue (same ones). Do you want a more 'real world' example? On Friday, November 7, 2014 4:22:58 PM UTC+2, Michael DeHaan wrote: > > > Would need to see your complete playbook. > > Defin

Re: [ansible-project] copy module ignores --check flag for file params when md5sums are the same -- Not Cool!

2014-11-07 Thread Michael DeHaan
Can you please be explicit about what the "not a very cool behavior" is ? I'm having trouble parsing your intent from the above. Thanks! On Thu, Nov 6, 2014 at 4:46 PM, Sean McGowan wrote: > I am using ansible 1.7.2 on RedHat > > Note that I am super happy that I was doing something somewhat i

Re: [ansible-project] create remote file only if local template exists

2014-11-07 Thread Michael DeHaan
"or just run with ignore_errors: true, it will fail when the template source dooesn't exist" That's not always true with action plugins. Usually true of modules that return failed error codes. The better way to do this would be to use the "stat" module with "local_action", check for existance, a

Re: [ansible-project] Re: extra_vars don't override inventory variables in templates (continuing #9242)

2014-11-07 Thread Michael DeHaan
Would need to see your complete playbook. Definitely don't modify the code just yet :) On Thu, Nov 6, 2014 at 12:44 PM, Hagai Kariti wrote: > Ok, I poked around a bit and indeed found one precedence issue and one > premature templating issue: > > In lib/ansible/runner/__init__.py lines 612-61

Re: [ansible-project] Re: Ansible copy module takes lot of time on same machine

2014-11-07 Thread Michael DeHaan
You can refer to http://www.ansible.com/blog/ansible-performance-tuning for tuning tips. On Thu, Nov 6, 2014 at 11:25 AM, Ethan Collins wrote: > Yes, I had tried that -- it pushes the CPU to max power and takes almost > similar time. > > On Thursday, November 6, 2014 9:42:37 PM UTC+5:30, Brian

Re: [ansible-project] Re: action plugin vs module

2014-11-07 Thread Michael DeHaan
Action plugins call modules of the same name sometimes, not the other way around. This has nothing to do with "Don't Repeat Yourself". On Thu, Nov 6, 2014 at 11:31 AM, cdar z wrote: > So if I'm understanding it right, synchronize module should invoke > synchronize action plugin to meet DRY pr

Re: [ansible-project] Re: v1.6.8 ERROR: a duplicate parameter was found in the argument string

2014-11-07 Thread Michael DeHaan
Please update to Ansible 1.7.2 and see if you have any issues there, we can't support older versions on this list. Thanks! On Thu, Nov 6, 2014 at 7:50 AM, vineet daniel wrote: > > Hi, > > I am facing the same issue and there is no clear error as to which > parameter is duplicate. > > a duplicat

Re: [ansible-project] Roles, tasks and composability

2014-11-07 Thread Michael DeHaan
There will not be a task that applies roles, the "role" directive is for this. On Thu, Nov 6, 2014 at 2:02 AM, Juho Viitasalo wrote: > I'm not sure if we are talking about the same thing. Dennis didn't speak > about lazy loading roles on demand, but running role as a task so you could > do cus

Re: [ansible-project] Re: Nested loops with subelements

2014-11-07 Thread Michael DeHaan
Sorry, I'm not sure what your specific question is. I see a lot of text without a question mark and am having trouble parsing. On Wed, Nov 5, 2014 at 6:42 PM, Ananda Debnath wrote: > Any recommendations? > > -- > You received this message because you are subscribed to the Google Groups > "Ans

Re: [ansible-project] ansible -m setup takes extra 2 min on Fedora 20

2014-11-07 Thread Michael DeHaan
Interesting - so it's not about fact gathering at all. Experimentation to see if regular SSH commands have issues with first connections would be welcome. It might result in the need to file a ticket on the distro. On Wed, Nov 5, 2014 at 5:50 PM, Greg Andrews wrote: > > Toshio Kuratomi wro

Re: [ansible-project] copy module with hard link destination

2014-11-07 Thread Michael DeHaan
Assuming you mean the (>$) whichever weird syntax, using fifo's as an inventory file was never really an intended thing. Please file a bug on the hardlink issue so we can investigate. Thanks! On Wed, Nov 5, 2014 at 4:53 PM, Sean McGowan wrote: > yes.. 1.7.2 is installed now and the result is t

[ansible-project] Ansible on StackShare

2014-11-07 Thread Michael DeHaan
Just found about this yesterday via twitter but here's an interesting website that allows sharing your company's tech stack: http://stackshare.io/ You can add "Ansible" in the "DevOps" category if you are using Ansible, for instance. It seems this is just getting started, but here's our page: h

Re: [ansible-project] group_vars - is this supported?

2014-11-07 Thread Serge van Ginderachter
Yes, up to one level. On 6 November 2014 22:59, Tennis Smith wrote: > > > Can group_vars have nested sub-directories? For example, can I have > directories for groups "group_one" and "group_two" like this: > > group_vars/ > all > group_one/ > all > foo > bar