Noob issue: How to use profiles with ansible ec2.py

Hey Guys,

When I do the following:

ansible -i ./ec2.py --profile my_profile_name tag_Name_nar -m ping

I get the error message:

Usage: ansible [options]

ansible: error: no such option: --profile

How can I pass the “–profile my_profile_name” argument to ec2.py rather than have it interpreted by ansible?

Any pointers would be appreciated.

Found the answer in the docs…