Found the answer in the docs....

> You can then run ec2.py --profile prod to get the inventory for the prod 
account, this option is not supported by ansible-playbook though. But you 
can use the AWS_PROFILE variable - e.g. AWS_PROFILE=prod ansible-playbook -i 
ec2.py myplaybook.yml

On Wednesday, October 19, 2016 at 7:56:26 PM UTC-7, Sonny Chee wrote:
>
> 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 <host-pattern> [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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to