On Friday, September 12, 2014 9:30:19 PM UTC+7, Michael DeHaan wrote: > "is that I effectively want to assign/alias zookeeper_myid = > ec2_tag_zookeeper_id andzookeeper_bind_address = ec2_private_ip_address for > each host in the group" > > Are you saying you wish to add them to another group? > > The add_host module is good for that. >
No, these are *host* variables, since they're both unique to a given host (in a cluster). I just want to be able to assign the values from my inventory (ec2_ hostvar names) to the specific hostvar variable names that a role is looking for. Without changing the role—assuming it's vendor code and should remain general anyway. Basically, assuming this were possible somehow, it's what I want to do (note the same dict key on both sides of assignment): hostvars[host].zookeeper_myid = hostvars[host].ec2_private_ip_address -Ches -- 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/68bf8a20-ae83-45de-98dc-71f6805d2ed1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
