example-2: This is serves as an example so just don't copy/past it. Instead, to suit your needs, you should customize its variables; ansible_key, security group rules etc..
example-1: To disable the ssh strict host key checking, a behavior we don't want when automating tasks, we set it to
ansible.cfg file. ie:
ec2.py file is a python script that executes and returns your AWS ressources based on the
ec2.ini which is the configuration file that you need to customize if you want to limit the scope of your project to some particular regions, specific tags etc...