[ansible-project] Ansible 1.9.4 has been released

2015-10-09 Thread James Cammarata
Hi all, 1.9.4 has been released, and is now available. This release addresses several bugs, most notably those related to the yum module (introduced in 1.9.3): * Fixes a bug where yum state=latest would error if there were no updates to install. * Fixes a bug where yum state=latest did not work

[ansible-project] Adding dict key + value

2015-10-09 Thread Guy Knights
I'm trying to add a new key to an existing dictionary but I'm having some trouble. I have this set_fact task: - set_fact: ha.listeners.backends[item.key].servers="{{ groups[item.key] }}" with_dict: ha.listeners.backends It runs through without complaining, but when I debug the car there's

Re: [ansible-project] Include unexisting files

2015-10-09 Thread Dan C
Thanks David. I think it would be a nice feature. Right now I suppose that I could just run ansible-playbook from within the ansible playbook which would run the " */this/file/does/not/exist/yet/configure.yml*" playbook. It should work, shouldn't it? But it even sound so awfull ! ;-) El jueves,

Re: [ansible-project] Re: Slow fact gathering or slow winrm on windows hosts

2015-10-09 Thread Trond Hindenes
That's unusual. For non-wan connections we are usually looking at max 3 seconds for the setup module. What happens when you set up a psremoting session from a windows computer to the same nodes, hows performance? On Friday, October 9, 2015 at 6:50:56 PM UTC+2, Brian Coca wrote: > > there is no

Re: [ansible-project] Configuration error: No MPM loaded when using validate in apache role

2015-10-09 Thread Joseph Djomeda
Hello Brian, Thank you. On Fri, Oct 9, 2015 at 3:33 PM Brian Coca wrote: > validate checks the file BEFORE putting it into place, since you are > using a multifile configuration, the validation will always fail as it > is missing the rest of the apache config. > > > validate

Re: [ansible-project] Re: Slow fact gathering or slow winrm on windows hosts

2015-10-09 Thread Michael Baydoun
All servers are local in this building. Will look at increasing forks even more than we already have, though limited in what we can do until 2.0 is released and allows for per task serial values. On Fri, Oct 9, 2015 at 12:02 PM Trond Hindenes wrote: > There's no getting

[ansible-project] Re: Slow fact gathering or slow winrm on windows hosts

2015-10-09 Thread Trond Hindenes
There's no getting around the fact that winrm is a much slower protocol than ssh. Those numbers seem unreasonably high tho. Any chance you're using a local ansible control node against cloud-based windows servers? You could also consider speeding up your playbooks using the "forks"

[ansible-project] group name from variable

2015-10-09 Thread francesco . savignago
Hi! I would like to run a role something like - name: debug role debug: msg="{{ hostvars[item].ansible_host }}" with_items: groups[ {{ALLOWED_HOSTS_GROUP}} ] however the syntax groups[ {{ALLOWED_HOSTS_GROUP}} ] is not accepted. Is there any other way to pass a group name from a variable

Re: [ansible-project] Re: List of Ansible default variables

2015-10-09 Thread Kale Franz
Brian, This is incredibly useful info and could be helpful to add to the official documentation. Similar to the play_hosts variable, is there something like a "play_roles" variable that is an ordered list of roles for the current play? I'd like to be able to trigger certain behavior

Re: [ansible-project] Playbook organization with var files

2015-10-09 Thread Brian Coca
you can already set plugins paths in ansible.cfg, as for group/host_vars they are also relative to inventory, which I guess you share across plays, so it all can already be organized 'globally' -- Brian Coca -- You received this message because you are subscribed to the Google Groups

Re: [ansible-project] Re: Slow fact gathering or slow winrm on windows hosts

2015-10-09 Thread Brian Coca
there is no plan to allow per task serial, it is not a feature in 2.0. you can easily add a play in the middle of a playbook for such tasks that need a change in the 'serial' setting -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project"

Re: [ansible-project] group name from variable

2015-10-09 Thread Brian Coca
with_items: "{{ groups[ALLOWED_HOSTS_GROUP] }}" -- 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] module to release floating ips in openstack?

2015-10-09 Thread Tim Rupp
Hey folks, Is anyone aware of a module that can be used to release floating ip addresses allocated to a project? There is an os_floating_ip module, but it only looks like it handles attaching and detaching them. I specifically want to release one if it was allocated to my project. Thanks, tim

[ansible-project] Re: Create GCE instances msg: Unexpected response: {}

2015-10-09 Thread Anatoliy Kovalenko
I have the same issue. I use a gce_module of ansible which uses apache-libcloud. When I try to run a google instance, I get an error - failed: [localhost] => {"changed": false, "failed": true} msg: Unexpected response: {} What can possibly cause it? On Saturday, January 24, 2015 at 9:59:50

[ansible-project] Slow fact gathering or slow winrm on windows hosts

2015-10-09 Thread Michael Baydoun
A few of our windows hosts take 20-30 seconds to gather facts, and that's the good news. The other hosts take > 1 minute just to gather facts. When run with -, it appears to me that every winrm step just takes a long time. Has anyone run into this? Suggestions? Adding each windows host

Re: [ansible-project] Configuration error: No MPM loaded when using validate in apache role

2015-10-09 Thread Joseph Djomeda
Hello All, I have tried with single configuration this time but it didn't work still. I get the part it checks before but in my case I was not even using it. it's part of a include file task that would get skipped anyway. So am not too sure how to make this compatible with my

[ansible-project] 1.9.3 broken service on Ubuntu 14.04.2 LTS

2015-10-09 Thread razvan
Hi, It seems this bug reappear in 1.9.3: - name: restart php5-fpm service: name=php5-fpm state=restarted does not works anymore, again, I need it to temporary fix with: # - name: restart PHP-FPM # service: name=php5-fpm state=restarted - name: restart php-fpm command: service php5-fpm

[ansible-project] Re: Disable Nagios Alerts

2015-10-09 Thread Dimitri Yioulos
Veera, I got your request for an example off-list, but thought I'd post it here: --- - hosts: all gather_facts: true # sudo: yes tasks: - nagios: action=downtime minutes=5 author="Dimitri Yioulos" service=host host={{item}} with_items: "{{ groups['test'] }}" delegate_to:

Re: [ansible-project] Memory usage and requirements - oom-kill victim

2015-10-09 Thread James Cammarata
Yes, this appears to be similar to the bug SVG pointed out, which I've tracked down to being related to the way python queues use pickle to serialize dictionary data (the resulting size of the data can be 200x than it was in the dictionary before). I'm currently working on a solution to this, and

Re: [ansible-project] Include unexisting files

2015-10-09 Thread James Cammarata
Correct, this is not possible with playbook-level includes, however you could do it with task-level includes in 2.0. James Cammarata Director, Ansible Core Engineering github: jimi-c On Fri, Oct 9, 2015 at 3:46 AM, Dan C wrote: > Thanks David. > I think it would be a nice

Re: [ansible-project] Memory usage and requirements - oom-kill victim

2015-10-09 Thread Robert Lupinek
Enter code here... --- - hosts: all remote_user: root serial: 20 tasks: - name: Install nscd yum: pkg=nscd state=latest disable_gpg_check=no - name: Transfer the conf file copy: src=files/etc/nscd.conf dest=/etc/nscd.conf mode=0644 backup=yes - name: Configure service...

Re: [ansible-project] Memory usage and requirements - oom-kill victim

2015-10-09 Thread Robert Lupinek
Ok, On the RHEL 7 host my versions are as follows: 1. ansible =ansible 1.9.3 2. PythoPython = 2.7.5 On the RHEL 6 host my versions are as follows: 1. ansible = ansible 1.9.2 2. Python = Python 2.6.6 I will report back once I can start monitoring malloc. -- You received this

[ansible-project] Playbook organization with var files

2015-10-09 Thread Mike Biancaniello
I have the same issues trying to manage a ton of playbooks that all use the same resources (which is how I stumbled upon this). However, after reading the comments, I think I better understand where Ansible is coming from. (people who know I'm sure will correct me if I'm wrong) It seems as

Re: [ansible-project] Memory usage and requirements - oom-kill victim

2015-10-09 Thread Brian Coca
can you show the play that is producing this issue? Plenty of people use the yum module with those versions and do not report such an issue. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group

Re: [ansible-project] Memory usage and requirements - oom-kill victim

2015-10-09 Thread Serge van Ginderachter
In my experience, OOM's happen when the inventory is large, especially when having lots of variables in the inventory, combined with lots (several hundreds) of hosts. Not very scientific, but to get a rough idea on the size of your inventory, could you show the output of $ time (ansible all -m

[ansible-project] Configuration error: No MPM loaded when using validate in apache role

2015-10-09 Thread Joseph Djomeda
Hello Guys, I am sure this is a little issue many of you have already solve but I seem stuck about this rc:1 error:AH00534: apache2: Configuration error: No MPM loaded when I use validate in tempate module of my apache role. Everything works file when commented out. Looks like so many fix on

Re: [ansible-project] Configuration error: No MPM loaded when using validate in apache role

2015-10-09 Thread Brian Coca
validate checks the file BEFORE putting it into place, since you are using a multifile configuration, the validation will always fail as it is missing the rest of the apache config. validate is only useful with single file configurations -- Brian Coca -- You received this message because you