Hi,
I have this code of template for zookeeper role:
{% for host in groups['all'] %}
server.{{ hostvars[host].zookeeper_id }}={{
hostvars[host]['ansible_hostname'] }}:2888:3888
{% endfor %}
In this example it applies for all hosts in the inventory file.
I know you can specify a group like : groups['zookeepers'] but I need to
apply it on the current group the role runs on.
Is it possible?
Thanks
--
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/0f50779a-7664-4496-b264-228f7b64fb00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.