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/5fdd4a16-949b-4622-b867-dd863e0a6a60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.