The following AWS CLI command will give you a list of all internal IPs (which you could run only against the Test host group):
aws ec2 describe-instances --query 'Reservations[*].Instances[*].PrivateIpAddress' --output text On Wednesday, 14 January 2015 20:47:21 UTC+11, Tzach Livyatan wrote: > > Another newbie questions (second and last for today, I promise) > I have two groups for EC2 instances: > - Test servers > - Loader servers > each with a different tag. > I would like to get the list of the internal_ip of the Test group, and use > it to run a command on the Loaders group. > Any pointer will be appreciated! > > 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/bd7b8dfc-1839-4670-bbab-180fc7f1423f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
