Re: [ansible-project] ec2_eip is not idempotent

2014-11-11 Thread Herby Gillot
Updated this PR, added state='allocate' option, and fixed logic that looks for free elastic IPs that aren't currently associated with an instance. On Tuesday, November 11, 2014 12:05:44 PM UTC-5, Herby Gillot wrote: > > 1) I personally think that if no public IP is specified, but an instance > I

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

2014-11-11 Thread Sean McGowan
following up on this... is this a bug or an expected behaviour? On Friday, November 7, 2014 9:43:45 AM UTC-5, Sean McGowan wrote: > > > > 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 pr

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

2014-11-11 Thread Sean McGowan
issue #302 - ansible-modules-core thanks! and i never expect fifo's to work, but it is a nice shortcut when testing. :) On Friday, November 7, 2014 9:13:33 AM UTC-5, Michael DeHaan wrote: > > Assuming you mean the (>$) whichever weird syntax, using fifo's as an > inventory file was never real

[ansible-project] Re: Generate hostlist.conf for Munin

2014-11-11 Thread Dan Vaida
I think the problem could be caused by the delegate_to Have you tried running the playbook without it? i.e. let the Munin master node to generate the conf file dynamically by being the one that connects to each Munin node to fill in the template. On Friday, 26 September 2014 13:52:13 UTC+2, Sibi

Re: [ansible-project] Strange behaviour, possible bug

2014-11-11 Thread Dariusz C.
No, still skipping. But I got the answer. Check the forum https://groups.google.com/forum/?#!topic/ansible-project/BBbdxspBzHI 2014-11-11 18:04 GMT+01:00 Petros Moisiadis : > On 11/11/14 18:32, Petros Moisiadis wrote: > > On 11/11/14 18:12, cdar z wrote: > > Sorry, I made mistake. Bad example. I

Re: [ansible-project] How to add verbosity to ansible.runner.Runner ?

2014-11-11 Thread Ethan Collins
I tried this today after rebooting XP and the timing is the same -- scp takes < 1 sec and ansible taking 1.2 sec, as I didn't delete the already copied file. After I deleted, ansible took 3.5 secs. I am on Linux host and running XP on virtualbox on the same Linux host. Any idea why ansible take

Re: [ansible-project] ec2_eip is not idempotent

2014-11-11 Thread Herby Gillot
1) I personally think that if no public IP is specified, but an instance ID is provided, then nothing should be done if that instance already has an elastic IP attached to it. 2) If we want to simply allocate a new Elastic IP, then I agree that that should simply be a new state flag, state='all

Re: [ansible-project] Strange behaviour, possible bug

2014-11-11 Thread cdar z
That's a bummer. Thank You a lot. W dniu wtorek, 11 listopada 2014 18:01:18 UTC+1 użytkownik Michael Peters napisał: > > Adding a when condition to an include doesn't conditionally include > the file, it instead adds that condition to every task in that file. > So in this case yes, the debug do

Re: [ansible-project] Strange behaviour, possible bug

2014-11-11 Thread Michael Peters
Adding a when condition to an include doesn't conditionally include the file, it instead adds that condition to every task in that file. So in this case yes, the debug does have the when statement. On Tue, Nov 11, 2014 at 11:53 AM, cdar z wrote: > But debug doesn't have when statement. If set_fac

[ansible-project] Is there any option that can synchronously execute multiple palybooks on the same host?

2014-11-11 Thread xin zhang
I notice if multiple playbooks are applied to the same host concurrently, ansbile will not take any lock but let they all run; this result some playbooks fail because system conflict, for example, failing to acquire apt lock on ubuntu. Is there any option can serialize concurrent playbooks exec

Re: [ansible-project] Strange behaviour, possible bug

2014-11-11 Thread cdar z
But debug doesn't have when statement. If set_fact was runned, debug should too. W dniu wtorek, 11 listopada 2014 17:44:09 UTC+1 użytkownik Brian Coca napisał: > > still works as expected. > > set fact runs when bar is not defined, debug is skipped on the same > condition as it isn't true once

Re: [ansible-project] Strange behaviour, possible bug

2014-11-11 Thread Brian Coca
still works as expected. set fact runs when bar is not defined, debug is skipped on the same condition as it isn't true once set fact sets bar. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group an

Re: [ansible-project] Strange behaviour, possible bug

2014-11-11 Thread cdar z
Sorry, I made mistake. Bad example. I meant this one: $ cat inv local ansible_connection=local $ cat extra.yml --- - set_fact: bar=hello - debug: msg="baz {{ bar }}" $ cat playbook.yml --- - hosts: local tasks: - include: extra.yml when: bar is not defined $ ansible-playbook -i inv play

Re: [ansible-project] Strange behaviour, possible bug

2014-11-11 Thread Brian Coca
cause you asked it to? I think you want: ``` when: bar is defined ``` -- Brian Coca -- 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+unsubs

[ansible-project] Re: Create different sets of users on different sets of hosts

2014-11-11 Thread Paul Slootman
Also apologies, I was offline for a bit and then had other priorities at work. I've downloaded your github example as a zip file, unpacked it, modified host and usernames to reflect the local situation. I now don't get an error, but now the tasks just show "skipping" for everything: PLAY [Add

[ansible-project] Re: collectively querying/combining results of the setup and ec2_facts modules

2014-11-11 Thread Dan Vaida
Never mind that erroneous include. It's now properly aligned and Ansible doesn't get surprised anymore by what I'm including :) On Tuesday, 11 November 2014 16:39:00 UTC+1, Dan Vaida wrote: > > Greetings everyone! > > For a given reason, I need to handle some Route53 records for my EC2's > EIPs

[ansible-project] collectively querying/combining results of the setup and ec2_facts modules

2014-11-11 Thread Dan Vaida
Greetings everyone! For a given reason, I need to handle some Route53 records for my EC2's EIPs. The instances are part of the [all] group in my hosts file. Obviously, the 'setup' module is not aware of EIPs. But the ec2_facts module is. Right now, I'm trying to wrap my head around this desig

[ansible-project] Strange behaviour, possible bug

2014-11-11 Thread cdar z
$ cat inv local ansible_connection=local $ cat playbook.yml --- - hosts: local tasks: - debug: msg="foo" when: bar is not defined - set_fact: bar=hello - debug: msg="baz {{ bar }}" when: bar is not defined $ ansible-playbook -i inv playbook.yml PLAY [local]

Re: [ansible-project] Problem with windows modules

2014-11-11 Thread Brian Coca
ansible cannot find the local win_ping module, it seems an issue with your ansible installation at your master. On Tue, Nov 11, 2014 at 4:54 AM, youmarva wrote: > Hi, > > I recently installed Ansible 1.8 on debian 7, I had a problem when testing > connection > to a windows machine. > Here is th

Re: [ansible-project] ec2_eip is not idempotent

2014-11-11 Thread Eoin Verling
Agree with Ananda ... precisely what I did. I noticed I was running out of EIPs, each call created a new one but didn't associate it (as the instance already had one!) ... so I just added a "when" the instance.public_ip == none ... works like a charm e On Friday, 31 October 2014 04:24:15 UTC,

[ansible-project] SSH connections to EC2 hang sporadically

2014-11-11 Thread Tore Olsen
Hello, I'm having problems with SSH connections hanging seemingly indefinitely. I don't recognize any patterns as to what tasks or handlers this happens on. I'm running ansible 1.7.1 on OS X Yosemite against a bunch of ec2 instances. I also deploy to vagrant but don't think it has had similar S

Re: [ansible-project] Rolling restart using handlers

2014-11-11 Thread Costi Ciudatu
Thanks Brian, I wanted a confirmation for this because I feel like it makes the roles and handlers hardly unusable in a real cluster environment and it shouldn't be addressed with workarounds. I'll try to see if I can come up with a patch and submit it for review. On Monday, November 3, 2014

Re: [ansible-project] Rolling restart using handlers

2014-11-11 Thread Azul Inho
I do this: # first batch in parallel 6 - hosts:

[ansible-project] Re: RHEL6.6 and ControlPersist

2014-11-11 Thread Azul Inho
just a heads up, I run RH6.5, not able to upgrade at the moment to 6.6 (and it looks like it wouldn't help either), I have worked around the ControlPersist issue by installing a openssh6 client on my control host box (/opt/openssh6), I then have a wrapper script that calls ansible-playbook and s

[ansible-project] Re: Upgrades and reboots - question

2014-11-11 Thread Azul Inho
This works on my machine, - name: wait for server to come back local_action: shell while true; do echo "Waiting ..." ; ssh -o ConnectTimeout=5 -o BatchMode=yes {{ inventory_hostname }} pwd ; [ $? -eq 0 ] && break || sleep 5; done sudo: false On Monday, November 10, 2014 10:14:50 AM UT

Re: [ansible-project] slow gathering_facts followed by a long pause before first task

2014-11-11 Thread Azul Inho
Same issue with 1.7.2, I have worked around the ControlPersist issue by installing a openssh6 client on my control host, it helps a lot. The issue I had mentioned earlier is actually due to ansible vault, with a set of encrypted vault files: Nov 11 10:46:22 GATHERING FACTS

Re: [ansible-project] Problem setting variable with bond0.11 IPv4 address from the gathered facts.

2014-11-11 Thread Joel Sdc
Hi Matt, I just wanted to say that it worked perfectly as you said. The correct format is: "{{ hostvars[inventory_hostname]['ansible_bond0.11']['ipv4']['address'] }}" Thank you very much. J. -- On Wed, Nov 5, 2014 at 11:12 PM, Matt Martz wrote: > According to that error, you have not defi

[ansible-project] Re: Passing arguments to a module

2014-11-11 Thread Dane Lipscombe
I am unable to use the 1.8 omit default either env={{item.container.env|default(omit)}} One or more undefined variables: 'omit' is undefined When using the dev version should ansible --version still say 1.7.2? the 'which ansible' command is pointing to my checkout... On Tuesday, 11 November 20

[ansible-project] Passing arguments to a module

2014-11-11 Thread Dane Lipscombe
I would like to pass arguments to the docker module like so: - container: name: 'testa' image: 'testa' - container: name: 'testb' image: 'testb' - name: Start docker containers docker: args: "{{item.container}}" with_items: run_docker_containers But i get th

[ansible-project] Problem with windows modules

2014-11-11 Thread youmarva
Hi, I recently installed Ansible 1.8 on debian 7, I had a problem when testing connection to a windows machine. Here is the error: root@ansible:~# ansible vm-windows -m win_ping - <192.168.1.108> ESTABLISH WINRM CONNECTION FOR USER: administrateur on PORT 5986 TO 192.168.1.108 <192.168.1.