search ec2 instance using instance_tags

Hi All,

I am new to ansible and reading up on how to use it to create and provision ec2 instances. I am just wondering are there any example playbook for searching for a specific ec2 instance using security group and instance_tag?

Thank in advance.