[ansible-project] Re: run_once per group.

2014-12-23 Thread Nico K.
I'm still kinda stuck here, the only way that I've found working is what Michael posted earlier. However that solution doesn't work when I use it with '--limit'. IMHO run_once_per_group would be an awesome solution, one reasonable alternative would be as per my previous post, a variable that doe

[ansible-project] Re: run_once per group.

2014-12-22 Thread Nico K.
I thought of a workaround but I can't seem to get that to work either... :( This is a snippet: - name: test gather_facts: false hosts: backend tasks: - debug: msg='{{ last_frontend_host_seen|default("") }}' - set_fact: last_frontend_host_seen: "{{ frontend_host }}" Basi

[ansible-project] Re: run_once per group.

2014-12-20 Thread Nico K.
> > let me elaborate a bit further: > The backend groups have a variable set for the webservice to call, that webservice runs on one of the frontend boxes. [backend:children] backend-group1 backend-group2 [backend-group1] be[1:3] [frontend-group1] fe1 [backend-group2] be[4:6] [frontend-grou