Thanks Mike you are right, removing the curly braces and using + pool
worked.
On Thursday, May 21, 2015 at 5:04:53 PM UTC-4, Mike Herron wrote:
>
> Assuming 'pool' is provided somewhere else, I don't think you want the
> curly braces?
>
> {% for servers in groups['pool-' + pool ] %}
> server {{ hostvars[backend]['ansible_hostname'] }}
> {% endfor %}
>
> Or are you looking to run that task for all your pools?
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/e6f6f6b3-e4f7-45ce-a908-18ef6e304dd8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.