\\Production AWS environment
zookeeper:
  hosts: "{% set hosts = [] %}{% for host in groups['zookeeper_master'] 
%}{% do hosts.append(hostvars[host].ec2_private_ip_address) %}{% endfor 
%}{{hosts}}" \\

What would be the Ansible way to generate a list as what is being done 
here? You provided an example of looping through shell commands, but what 
is required is assigning a list variable to the ip addresses of each host.

-- 
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/1512cdb0-036a-4577-9745-6c9377e1acce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to