I'm trying to setup a Zookeeper cluster and in order to set the url that points to the ZK nodes I would like to know which are the ip addresses of the hosts running the current role.
I know that from the playbook I can pass the hosts machines through a variable but it would be nice to check this within the role.