Hi,

I am new to Ansible and trying to automate the following scenario on AWS:

1) Get the instance ids registered to an elb from within an elb. (I do not 
want to specify the instaces in a harcoded way)
2) Deregister one instance and perform my needed operation in that instance 
(e.g. edit /var/lib/monit/id ) 
3) Register that instance back into the same elb. Repeat the same until all 
instances in that elb are updated/upgraded.

I tried follwoing:

- ec2_elb_facts for instance ids (it does not provide host name or public 
ids) and create a group for the instances
- ec2_elb to deregister instances using the group created above
- I am not sure how to log into the instances on the fly as ec2_elb_facts 
does not provide hostname or IPs.

Can anyone please help me on this ? If anyone can provide me the scripts, 
that would be of great help.

Thanks,
Raj.

-- 
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/33c5b2f2-3e4f-4688-87ee-3dacd56b53cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to